File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed
android/app/src/main/java/com/androidprogressbarexample
ios/AndroidProgressBarExample Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1
1
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
+ ]
3
14
} ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ protected List<ReactPackage> getPackages() {
28
28
29
29
@ Override
30
30
protected String getJSMainModuleName () {
31
- return "index" ;
31
+ return "example/ index" ;
32
32
}
33
33
};
34
34
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
33
33
- (NSURL *)sourceURLForBridge : (RCTBridge *)bridge
34
34
{
35
35
#if DEBUG
36
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: @" index" fallbackResource: nil ];
36
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: @" example/ index" fallbackResource: nil ];
37
37
#else
38
38
return [[NSBundle mainBundle ] URLForResource: @" main" withExtension: @" jsbundle" ];
39
39
#endif
Original file line number Diff line number Diff line change 20
20
},
21
21
"dependencies" : {
22
22
"react" : " 16.8.3" ,
23
- "react-native" : " 0.59.4"
23
+ "react-native" : " 0.59.4" ,
24
+ "babel-plugin-module-resolver" : " ^3.2.0"
24
25
},
25
26
"devDependencies" : {
26
27
"@babel/core" : " ^7.4.3" ,
You can’t perform that action at this time.
0 commit comments