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:
Christoph Purrer authored and meta-codesync[bot] committed 2026-07-30 14:40:46 -07:00
1 parent 58bf844967
commit 663c191e47
1 file changed
+6 -1
+6 -1
View File
@@ -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];