Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 46a4318

Browse files
committed
RN 0.43.4 -> 0.50.4: code-push can work
1 parent bf9eed2 commit 46a4318

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

android/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import com.android.build.OutputFile
7373
*/
7474

7575
project.ext.react = [
76-
entryFile: "index.native.js"
76+
entryFile: "index.android.js"
7777
]
7878

7979
apply from: "../../node_modules/react-native/react.gradle"

android/app/src/main/java/com/noder/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected List<ReactPackage> getPackages() {
4444

4545
@Override
4646
protected String getJSMainModuleName() {
47-
return "index.native";
47+
return "index.android";
4848
}
4949
};
5050

File renamed without changes.

index.ios.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { AppRegistry } from 'react-native'
2+
import Noder from './src'
3+
4+
AppRegistry.registerComponent('noder', () => Noder)

ios/noder/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2020
NSURL *jsCodeLocation;
2121

2222
#ifdef DEBUG
23-
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.native" fallbackResource:nil];
23+
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
2424
#else
2525
jsCodeLocation = [CodePush bundleURL];
2626
#endif

0 commit comments

Comments
 (0)