File tree Expand file tree Collapse file tree 4 files changed +14
-32
lines changed
template/android/app/src/main Expand file tree Collapse file tree 4 files changed +14
-32
lines changed Original file line number Diff line number Diff line change 1111 android : theme =" @style/AppTheme"
1212 >
1313 <activity
14- android : name =" .SplashActivity"
15- android : theme =" @style/SplashTheme"
16- android : label =" @string/app_name"
17- android : exported =" true"
18- >
14+ android : name =" .MainActivity"
15+ android : label =" @string/app_name"
16+ android : configChanges =" keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
17+ android : launchMode =" singleTask"
18+ android : theme =" @style/SplashTheme"
19+ android : windowSoftInputMode =" adjustResize"
20+ android : exported =" true" >
1921 <intent-filter >
2022 <action android : name =" android.intent.action.MAIN" />
2123 <category android : name =" android.intent.category.LAUNCHER" />
2224 </intent-filter >
2325 </activity >
24-
25- <activity
26- android : name =" .MainActivity"
27- android : label =" @string/app_name"
28- android : configChanges =" keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|uiMode"
29- android : launchMode =" singleTask"
30- android : windowSoftInputMode =" adjustResize"
31- android : exported =" true" >
32- <intent-filter >
33- <action android : name =" android.intent.action.MAIN" />
34- </intent-filter >
35- </activity >
3626 </application >
3727</manifest >
Original file line number Diff line number Diff line change 44import com .facebook .react .ReactActivityDelegate ;
55import com .facebook .react .defaults .DefaultNewArchitectureEntryPoint ;
66import com .facebook .react .defaults .DefaultReactActivityDelegate ;
7+ import android .os .Bundle ;
78
89public class MainActivity extends ReactActivity {
910
@@ -29,4 +30,10 @@ protected ReactActivityDelegate createReactActivityDelegate() {
2930 // If you opted-in for the New Architecture, we enable the Fabric Renderer.
3031 DefaultNewArchitectureEntryPoint .getFabricEnabled ());
3132 }
33+
34+ @ Override
35+ protected void onCreate (Bundle savedInstance ) {
36+ super .onCreate (savedInstance );
37+ setTheme (R .style .AppTheme );
38+ }
3239}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments