Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/SampleRN20/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "node node_modules/react-native/local-cli/cli.js start"
},
"dependencies": {
"react-native": "0.20.0",
"react-native": "0.69.12",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing required react peer dependency for RN 0.69

High Severity

Upgrading react-native to 0.69.12 requires react@18.0.0 as a peer dependency, but react is not listed in dependencies. In RN 0.20, React was bundled inside react-native, so a separate react dependency wasn't needed. Starting from RN 0.44+, react became a required peer dependency. Without it, npm install will fail or produce broken installs, and the app will not run.

Fix in Cursor Fix in Web

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start script references removed local-cli/cli.js path

High Severity

The start script references node_modules/react-native/local-cli/cli.js, which was removed from react-native as part of the Lean Core effort. In RN 0.69.x the CLI lives in the separate @react-native-community/cli package. This script will fail with a "module not found" error. The path was valid for RN 0.20 but is broken after the version bump to 0.69.12.

Fix in Cursor Fix in Web

"react-native-webview-bridge": "../.."
}
}