Skip to content

Commit

Permalink
[iOS] RNTester: Fixes turbo module examples error in bridgeless mode
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongwuzw committed Dec 23, 2024
1 parent 5b6e35a commit d2f0435
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.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.nativeModuleProxy == null) {
throw new Error(
'Cannot load this example because TurboModule is not configured.',
);
Expand Down

0 comments on commit d2f0435

Please sign in to comment.