mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: probably the smallest PR I ever submitted, but it was bothering me lol There was a missing space in the method doc. ## Changelog Add space to the method doc <!-- Help reviewers and the release process by writing your own changelog entry. For an example, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [iOS] [Fixed] - Add missing space in method documentation comment Pull Request resolved: https://github.com/facebook/react-native/pull/35303 Reviewed By: jacdebug Differential Revision: D41182765 Pulled By: cipolleschi fbshipit-source-id: ebe5d56072137547e543a312c66cc3234142db13
33 lines
966 B
Plaintext
33 lines
966 B
Plaintext
#import "AppDelegate.h"
|
|
|
|
#import <React/RCTBundleURLProvider.h>
|
|
|
|
@implementation AppDelegate
|
|
|
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
|
{
|
|
self.moduleName = @"HelloWorld";
|
|
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
|
}
|
|
|
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
|
{
|
|
#if DEBUG
|
|
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
|
|
#else
|
|
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
|
|
#endif
|
|
}
|
|
|
|
/// This method controls whether the `concurrentRoot` feature of React18 is turned on or off.
|
|
///
|
|
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
|
|
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
|
|
/// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
|
|
- (BOOL)concurrentRootEnabled
|
|
{
|
|
return true;
|
|
}
|
|
|
|
@end
|