[Snyk] Security upgrade react-native from 0.40.0 to 0.69.12#38
[Snyk] Security upgrade react-native from 0.40.0 to 0.69.12#38MHxGH-ServiceAccount wants to merge 1 commit into
Conversation
The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-QS-14724253
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
This is a massive upgrade across nearly 30 minor versions, representing a complete architectural overhaul of React Native. A direct upgrade is not feasible; this should be treated as a full project migration. Key Breaking Changes:
Recommendation: Do not attempt an in-place upgrade. The recommended path is to create a new project using
|
| "dependencies": { | ||
| "react": "^15.1.0", | ||
| "react-native": "^0.40.0", | ||
| "react-native": "^0.69.12", |
There was a problem hiding this comment.
React version incompatible with upgraded React Native
Upgrading react-native from 0.40.0 to 0.69.12 creates a dependency incompatibility. React Native 0.69.x requires React 18.x as a peer dependency, but react remains at ^15.1.0. This version mismatch will prevent the example application from building or running correctly. The react dependency needs to be updated to a compatible version (React 18.x) alongside this React Native upgrade.
| "dependencies": { | ||
| "react": "^15.1.0", | ||
| "react-native": "^0.40.0", | ||
| "react-native": "^0.69.12", |
There was a problem hiding this comment.
Start script uses deprecated CLI path
The start script references node_modules/react-native/local-cli/cli.js, a path that no longer exists in React Native 0.69.x. The CLI was extracted to @react-native-community/cli in earlier versions. With the upgraded react-native dependency, this script will fail to execute. Modern React Native projects typically use npx react-native start or rely on the CLI's auto-discovery.
| "dependencies": { | ||
| "react": "^15.1.0", | ||
| "react-native": "^0.40.0", | ||
| "react-native": "^0.69.12", |
There was a problem hiding this comment.
Upgrade breaks code using removed AlertIOS API
The react-native upgrade to 0.69.12 removes the AlertIOS API that the example's index.ios.js relies on heavily. AlertIOS was deprecated and then removed from React Native in favor of the cross-platform Alert module. With this upgrade, the example app will crash at runtime when attempting to show alerts because the imported AlertIOS will be undefined.
Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
examples/TouchIDExample/package.jsonNote for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the
.yarn/cache/directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to runyarnto update the contents of the./yarn/cachedirectory.If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed with an upgrade:
SNYK-JS-QS-14724253
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Allocation of Resources Without Limits or Throttling
Note
Updates dependency in the example app.
react-nativeinexamples/TouchIDExample/package.jsonfrom^0.40.0to^0.69.12Written by Cursor Bugbot for commit 40220b8. This will update automatically on new commits. Configure here.