mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Reland RNTester: Fixes turbo module examples error in bridgeless mode (#49329)
Summary: Reland https://github.com/facebook/react-native/issues/48362. ## Changelog: [IOS] [FIXED] - RNTester: Fixes turbo module examples error in bridgeless mode Pull Request resolved: https://github.com/facebook/react-native/pull/49329 Test Plan: RNTester turbomodule examples in bridgeless can work as expected. Reviewed By: christophpurrer Differential Revision: D69463612 Pulled By: cortinico fbshipit-source-id: 8613b001ebbe64ce0d505f5515bb7a4b6a64dbe7
This commit is contained in:
committed by
Facebook GitHub Bot
parent
df3a60293c
commit
6a3e275d14
@@ -261,7 +261,7 @@ class NativeCxxModuleExampleExample extends React.Component<{}, State> {
|
||||
}
|
||||
|
||||
componentDidMount(): void {
|
||||
if (global.nativeModuleProxy == null && global.nativeModuleProxy == null) {
|
||||
if (global.__turboModuleProxy == null && global.RN$Bridgeless == null) {
|
||||
throw new Error(
|
||||
'Cannot load this example because TurboModule is not configured.',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user