mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Expose releaseLevel within RNTester-iOS (#57768)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57768 Changelog: [Internal] Reviewed By: zeyap Differential Revision: D114162628 fbshipit-source-id: 2c2101892bfbb8e16d444200f661d1445657066b
This commit is contained in:
1 parent
58bf844967
commit
663c191e47
1 file changed
+6
-1
@@ -51,7 +51,7 @@ static NSString *kBundlePath = @"js/RNTesterApp.ios";
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
self.reactNativeFactory = [[RCTReactNativeFactory alloc] initWithDelegate:self];
|
||||
self.reactNativeFactory = [[RCTReactNativeFactory alloc] initWithDelegate:self releaseLevel:[self releaseLevel]];
|
||||
#if USE_OSS_CODEGEN
|
||||
self.dependencyProvider = [RCTAppDependencyProvider new];
|
||||
#endif
|
||||
@@ -79,6 +79,11 @@ static NSString *kBundlePath = @"js/RNTesterApp.ios";
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (RCTReleaseLevel)releaseLevel
|
||||
{
|
||||
return RCTReleaseLevel::Stable;
|
||||
}
|
||||
|
||||
- (NSDictionary *)prepareInitialProps
|
||||
{
|
||||
NSMutableDictionary *initProps = [NSMutableDictionary new];
|
||||
|
||||
Reference in new issue
Block a user