Skip to content

Commit

Permalink
Fix Turbo Module example in RNTester in bridgeless mode (facebook#49028)
Browse files Browse the repository at this point in the history
Summary:

[Changelog] [Fixed] - Fix Turbo Module example in RNTester in bridgeless mode

Differential Revision: D68810934
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Jan 29, 2025
1 parent 3b5dc56 commit 1365f34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class NativeCxxModuleExampleExample 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.',
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
Expand Down

0 comments on commit 1365f34

Please sign in to comment.