Skip to content

Commit

Permalink
Merge pull request tuanpmt#2 from zywj/master
Browse files Browse the repository at this point in the history
add new import method
  • Loading branch information
tuanpmt committed Jun 10, 2017
2 parents 410b839 + 923ae2c commit 974b58f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@
#### Android

- `npm install react-native-smartconfig@latest --save`
- Modify the ReactInstanceManager.builder() calls chain in `android/app/main/java/.../MainActivity.java` to include:
- For older version. Modify the ReactInstanceManager.builder() calls chain in `android/app/main/java/.../MainActivity.java` to include:

```javascript
import com.tuanpm.RCTSmartconfig; // import

import com.tuanpm.RCTSmartconfig; // import for older version

.addPackage(new RCTSmartconfigPackage()) //for older version
```
- For newest version. Modify the ReactInstanceManager.builder() calls chain in `android/app/main/java/.../MainApplication.java` to include:
```javascript
import com.tuanpm.RCTSmartconfig.RCTSmartconfigPackage; // import for newest version of react-native

new RCTSmartconfigPackage() // for newest version of react-native
```
Expand Down

0 comments on commit 974b58f

Please sign in to comment.