File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 28
28
#### Android
29
29
30
30
- ` npm install react-native-smartconfig@latest --save `
31
- - Modify the ReactInstanceManager.builder() calls chain in ` android/app/main/java/.../MainActivity.java ` to include:
31
+ - For older version. Modify the ReactInstanceManager.builder() calls chain in ` android/app/main/java/.../MainActivity.java ` to include:
32
32
33
33
``` javascript
34
- import com.tuanpm.RCTSmartconfig; // import
35
-
34
+ import com.tuanpm.RCTSmartconfig; // import for older version
36
35
37
36
.addPackage (new RCTSmartconfigPackage ()) // for older version
37
+ ```
38
+ - For newest version. Modify the ReactInstanceManager.builder() calls chain in ` android/app/main/java/.../MainApplication.java ` to include:
39
+ ``` javascript
40
+ import com.tuanpm.RCTSmartconfig.RCTSmartconfigPackage; // import for newest version of react-native
38
41
39
42
new RCTSmartconfigPackage () // for newest version of react-native
40
43
```
You can’t perform that action at this time.
0 commit comments