Skip to content

Commit

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

Changelog: [Internal]

Differential Revision: D49817124

fbshipit-source-id: 39e9d73837074b78eb57ba9e84df02cae327763b
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Oct 2, 2023
1 parent b27fab7 commit 1108277
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 1108277

Please sign in to comment.