Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 3bce5a1

Browse files
author
max-mironov
committed
Updated docs for RN49 tweaks
1 parent 8c5bf4b commit 3bce5a1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/setup-android.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ public class MainApplication extends Application implements ReactApplication {
9999
}
100100
```
101101

102+
*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.*
103+
```
104+
@Override
105+
protected String getJSMainModuleName() {
106+
return "index";
107+
}
108+
```
109+
102110
**For React Native v0.19 - v0.28**
103111

104112
Update the `MainActivity.java` file to use CodePush via the following changes:

0 commit comments

Comments
 (0)