File tree 2 files changed +9
-2
lines changed
react-native/Libraries/AppDelegate
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*/
7
7
8
+ #import < React/RCTBridgeDelegate.h>
8
9
#import < UIKit/UIKit.h>
9
10
10
11
@class RCTBridge;
Original file line number Diff line number Diff line change 21
21
#import < RNTMyNativeViewComponentView.h>
22
22
#endif
23
23
24
+ #if BUNDLE_PATH
25
+ NSString *kBundlePath = @" xplat/js/RKJSModules/EntryPoints/RNTesterTestBundle.js" ;
26
+ #else
27
+ NSString *kBundlePath = @" js/RNTesterApp.ios" ;
28
+ #endif
29
+
24
30
@implementation AppDelegate
25
31
26
32
- (BOOL )application : (UIApplication *)application didFinishLaunchingWithOptions : (NSDictionary *)launchOptions
@@ -47,7 +53,7 @@ - (NSDictionary *)prepareInitialProps
47
53
48
54
- (NSURL *)sourceURLForBridge : (RCTBridge *)bridge
49
55
{
50
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: @" js/RNTesterApp.ios " ];
56
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: kBundlePath ];
51
57
}
52
58
53
59
- (BOOL )application : (UIApplication *)app
@@ -126,7 +132,7 @@ - (void)application:(__unused UIApplication *)application
126
132
127
133
- (NSURL *)getBundleURL
128
134
{
129
- return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: @" js/RNTesterApp.ios " ];
135
+ return [[RCTBundleURLProvider sharedSettings ] jsBundleURLForBundleRoot: kBundlePath ];
130
136
}
131
137
#endif
132
138
You can’t perform that action at this time.
0 commit comments