mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix Turbo Module example in RNTester in bridgeless mode (#49028)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/49028 ## Changelog: [General] [Fixed]] - Fix Turbo Module example in RNTester in bridgeless mode Reviewed By: cortinico, philIip Differential Revision: D68810934 fbshipit-source-id: 5eab0e72fe383974fe02747acd1683a995300d4d
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a8bf742f29
commit
67981efa14
@@ -204,7 +204,7 @@ class SampleTurboModuleExample extends React.Component<{}, State> {
|
||||
}
|
||||
|
||||
componentDidMount(): void {
|
||||
if (global.__turboModuleProxy == null) {
|
||||
if (global.__turboModuleProxy == null && global.nativeModuleProxy == null) {
|
||||
throw new Error(
|
||||
'Cannot load this example because TurboModule is not configured.',
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user