File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
template/android/app/src/main/java/com/reactnativeboilerplate Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change 6
6
7
7
It is a template that you can clone and reuse for every project. It is starting point for React Native application.
8
8
9
+ ##Wanna use React Native TypeScript Boilerplate ?
10
+ check it out here [ React Native TypeScript Boilerplate] ( https://github.com/handi-dev/react-native-typescript-boilerplate )
11
+
9
12
## React Native Boilerplate ( 0.69.1 )
10
13
11
14
consist of:
@@ -42,6 +45,13 @@ To create a new project using the boilerplate simply run :
42
45
npx react-native init MyApp --template @handidev/react-native-boilerplate
43
46
```
44
47
48
+ If you want to use typescript version of this React Native Boilerplate, just run this command:
49
+
50
+ ```
51
+ npx react-native init MyApp --template @handidev/react-native-typescript-boilerplate
52
+ ```
53
+
54
+
45
55
note: replace ` MyApp ` with your desired App name.
46
56
47
57
Assuming you have all the requirements installed, you can run the project by running:
Original file line number Diff line number Diff line change 1
1
package com .reactnativeboilerplate ;
2
+ import android .os .Bundle ;
2
3
3
4
import com .facebook .react .ReactActivity ;
4
5
import com .facebook .react .ReactActivityDelegate ;
@@ -15,6 +16,11 @@ protected String getMainComponentName() {
15
16
return "ReactNativeBoilerplate" ;
16
17
}
17
18
19
+ @ Override
20
+ protected void onCreate (Bundle savedInstanceState ) {
21
+ super .onCreate (null );
22
+ }
23
+
18
24
/**
19
25
* Returns the instance of the {@link ReactActivityDelegate}. There the RootView is created and
20
26
* you can specify the renderer you wish to use - the new renderer (Fabric) or the old renderer
You can’t perform that action at this time.
0 commit comments