Skip to content

Commit f0b3876

Browse files
committed
fixed merge conflict
2 parents 42a6499 + 32b707a commit f0b3876

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

babel.config.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
module.exports = {
2-
presets: ['module:metro-react-native-babel-preset'],
2+
presets: ["module:metro-react-native-babel-preset"],
3+
plugins: [
4+
[
5+
"module-resolver",
6+
{
7+
alias: {
8+
"@react-native-community/netinfo": "./js"
9+
},
10+
cwd: "babelrc"
11+
}
12+
]
13+
]
314
};

example/android/app/src/main/java/com/androidprogressbarexample/MainApplication.java

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

2929
@Override
3030
protected String getJSMainModuleName() {
31-
return "index";
31+
return "example/index";
3232
}
3333
};
3434

example/ios/AndroidProgressBarExample/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
3333
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
3434
{
3535
#if DEBUG
36-
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
36+
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"example/index" fallbackResource:nil];
3737
#else
3838
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
3939
#endif

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
},
2121
"dependencies": {
2222
"react": "16.8.3",
23-
"react-native": "0.59.4"
23+
"react-native": "0.59.4",
24+
"babel-plugin-module-resolver": "^3.2.0"
2425
},
2526
"devDependencies": {
2627
"@babel/core": "^7.4.3",

0 commit comments

Comments
 (0)