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 11
11
android : theme =" @style/AppTheme"
12
12
>
13
13
<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" >
19
21
<intent-filter >
20
22
<action android : name =" android.intent.action.MAIN" />
21
23
<category android : name =" android.intent.category.LAUNCHER" />
22
24
</intent-filter >
23
25
</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 >
36
26
</application >
37
27
</manifest >
Original file line number Diff line number Diff line change 4
4
import com .facebook .react .ReactActivityDelegate ;
5
5
import com .facebook .react .defaults .DefaultNewArchitectureEntryPoint ;
6
6
import com .facebook .react .defaults .DefaultReactActivityDelegate ;
7
+ import android .os .Bundle ;
7
8
8
9
public class MainActivity extends ReactActivity {
9
10
@@ -29,4 +30,10 @@ protected ReactActivityDelegate createReactActivityDelegate() {
29
30
// If you opted-in for the New Architecture, we enable the Fabric Renderer.
30
31
DefaultNewArchitectureEntryPoint .getFabricEnabled ());
31
32
}
33
+
34
+ @ Override
35
+ protected void onCreate (Bundle savedInstance ) {
36
+ super .onCreate (savedInstance );
37
+ setTheme (R .style .AppTheme );
38
+ }
32
39
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments