Skip to content

Commit

Permalink
Add BUCK configuration for RNTester-iOS (#39757)
Browse files Browse the repository at this point in the history
Summary:

Changelog: [Internal]

Differential Revision: D49817124
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Oct 3, 2023
1 parent 113de6e commit 53743d1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

#import <React/RCTBridgeDelegate.h>
#import <UIKit/UIKit.h>

@class RCTBridge;
Expand Down
8 changes: 7 additions & 1 deletion packages/rn-tester/RNTester/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -47,7 +53,7 @@ - (NSDictionary *)prepareInitialProps

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"js/RNTesterApp.ios"];
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:kBundlePath];
}

- (BOOL)application:(UIApplication *)app
Expand Down

0 comments on commit 53743d1

Please sign in to comment.