mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add BUCK configuration for RNTester-iOS (#39757)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39757 Changelog: [Internal] Reviewed By: fkgozali Differential Revision: D49817124 fbshipit-source-id: cccbdb324ca5ecc1795189a7c07cfed6aa220020
This commit is contained in:
committed by
Facebook GitHub Bot
parent
ea72bb2511
commit
e1d824ffd8
@@ -5,6 +5,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <React/RCTBridgeDelegate.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@class RCTBridge;
|
||||
|
||||
@@ -21,6 +21,12 @@
|
||||
#import <RNTMyNativeViewComponentView.h>
|
||||
#endif
|
||||
|
||||
#if BUNDLE_PATH
|
||||
NSString *kBundlePath = @"xplat/js/RKJSModules/EntryPoints/RNTesterTestBundle.js";
|
||||
#else
|
||||
NSString *kBundlePath = @"js/RNTesterApp.ios";
|
||||
#endif
|
||||
|
||||
@implementation AppDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
@@ -47,7 +53,7 @@
|
||||
|
||||
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
||||
{
|
||||
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"js/RNTesterApp.ios"];
|
||||
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:kBundlePath];
|
||||
}
|
||||
|
||||
- (BOOL)application:(UIApplication *)app
|
||||
@@ -126,7 +132,7 @@
|
||||
|
||||
- (NSURL *)getBundleURL
|
||||
{
|
||||
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"js/RNTesterApp.ios"];
|
||||
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:kBundlePath];
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user