Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Jan 3, 2025
1 parent d2f0435 commit e95378b
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.nativeModuleProxy == null) {
if (global.__turboModuleProxy == null && global.RN$Bridgeless == 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.nativeModuleProxy == null) {
if (global.__turboModuleProxy == null && global.RN$Bridgeless == null) {
throw new Error(
'Cannot load this example because TurboModule is not configured.',
);
Expand Down

0 comments on commit e95378b

Please sign in to comment.