Skip to content

Commit 974b58f

Browse files
authored
Merge pull request #2 from zywj/master
add new import method
2 parents 410b839 + 923ae2c commit 974b58f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@
2828
#### Android
2929

3030
- `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:
3232

3333
```javascript
34-
import com.tuanpm.RCTSmartconfig; // import
35-
34+
import com.tuanpm.RCTSmartconfig; // import for older version
3635

3736
.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
3841

3942
new RCTSmartconfigPackage() // for newest version of react-native
4043
```

0 commit comments

Comments
 (0)