mirror of
https://github.com/zhigang1992/react-native-code-push.git
synced 2026-05-19 02:41:14 +08:00
Updated docs for RN49 tweaks
This commit is contained in:
@@ -99,6 +99,14 @@ public class MainApplication extends Application implements ReactApplication {
|
||||
}
|
||||
```
|
||||
|
||||
*NOTE: For React Native v0.49+ please be sure that `getJSMainModuleName` function in the `MainApplication.java` file determines correct URL to fetch JS bundle (used when dev support is enabled, see [this](https://github.com/facebook/react-native/blob/c7f37074ac89f7e568ca26a6bad3bdb02812c39f/ReactAndroid/src/main/java/com/facebook/react/ReactNativeHost.java#L124) for more details) e.g.*
|
||||
```
|
||||
@Override
|
||||
protected String getJSMainModuleName() {
|
||||
return "index";
|
||||
}
|
||||
```
|
||||
|
||||
**For React Native v0.19 - v0.28**
|
||||
|
||||
Update the `MainActivity.java` file to use CodePush via the following changes:
|
||||
|
||||
Reference in New Issue
Block a user