This repository was archived by the owner on Feb 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
java/com/rntypescriptboilerplate Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 11package com .rntypescriptboilerplate ;
2-
2+ import android . os . Bundle ;
33import com .facebook .react .ReactActivity ;
44import com .facebook .react .ReactActivityDelegate ;
55import com .facebook .react .ReactRootView ;
6+ import org .devio .rn .splashscreen .SplashScreen ;
67
78public class MainActivity extends ReactActivity {
8-
9+ @ Override
10+ protected void onCreate (Bundle savedInstanceState ) {
11+ SplashScreen .show (this );
12+ super .onCreate (savedInstanceState );
13+ }
914 /**
1015 * Returns the name of the main component registered from JavaScript. This is used to schedule
1116 * rendering of the component.
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3+ android : orientation =" vertical" android : layout_width =" match_parent"
4+ android : layout_height =" match_parent" >
5+ <ImageView android : layout_width =" match_parent" android : layout_height =" match_parent" android : src =" @drawable/launch_screen" android : scaleType =" centerCrop" />
6+ </RelativeLayout >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <resources >
3+ <color name =" primary_dark" >#000000</color >
4+ </resources >
You can’t perform that action at this time.
0 commit comments