mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
995d5b832d
Summary: This is a copy of the current packages/react-native/template that we exclusively use internally for testing. Changelog: [Internal] NOTE: Best contribution would be to scan the file list and ensure there isn't anything that shouldn't be in there. bypass-github-export-checks Reviewed By: cortinico, cipolleschi Differential Revision: D56242484 fbshipit-source-id: 0913ff7acff9b0314b49f48e986674b77dbb908e
39 lines
993 B
Plaintext
39 lines
993 B
Plaintext
/*
|
|
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "AppDelegate.h"
|
|
|
|
#import <React/RCTBundleURLProvider.h>
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
{
|
|
self.moduleName = @"HelloWorld";
|
|
// You can add your custom initial props in the dictionary below.
|
|
// They will be passed down to the ViewController used by React Native.
|
|
self.initialProps = @{};
|
|
|
|
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
}
|
|
|
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
{
|
|
return [self bundleURL];
|
|
}
|
|
|
|
- (NSURL *)bundleURL
|
|
{
|
|
#if DEBUG
|
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
#else
|
|
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
#endif
|
|
}
|
|
|
|
@end
|