[Snyk] Security upgrade react-native from 0.42.3 to 0.69.12#16
[Snyk] Security upgrade react-native from 0.42.3 to 0.69.12#16MHxGH-ServiceAccount wants to merge 1 commit intomasterfrom
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, jumping from a 2017 version to a 2022 version, and involves fundamental architectural changes that will require a significant migration effort. Key Breaking Changes:
Source: React Native Release Notes
|
| "dependencies": { | ||
| "react": "15.4.2", | ||
| "react-native": "0.42.3", | ||
| "react-native": "0.69.12", |
There was a problem hiding this comment.
React Native 0.69 requires React 18, not React 15
Upgrading react-native to 0.69.12 without updating the react dependency creates a version incompatibility. React Native 0.69.x requires React 18.x as a peer dependency, but react remains at 15.4.2. This mismatch will cause the application to fail at runtime since React Native 0.69 uses React 18 APIs that don't exist in React 15.
| "dependencies": { | ||
| "react": "15.4.2", | ||
| "react-native": "0.42.3", | ||
| "react-native": "0.69.12", |
There was a problem hiding this comment.
TypeScript types don't match upgraded React Native version
The @types/react-native package remains at version 0.42.3 while react-native was upgraded to 0.69.12. This significant mismatch means the TypeScript type definitions won't match the actual APIs available in the installed React Native version, leading to incorrect type checking and potential runtime errors from using deprecated or changed APIs.
| "dependencies": { | ||
| "react": "15.4.2", | ||
| "react-native": "0.42.3", | ||
| "react-native": "0.69.12", |
There was a problem hiding this comment.
Start script path doesn't exist in React Native 0.69
The start script references node_modules/react-native/local-cli/cli.js, which was the CLI path in React Native 0.42.x. In React Native 0.69, the CLI was extracted to @react-native-community/cli as part of the "Lean Core" initiative and this path no longer exists. Running npm start will fail with a "module not found" error after this upgrade.
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):
example/package.jsonVulnerabilities 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
Security dependency upgrade
react-nativeinexample/package.jsonfrom0.42.3to0.69.12to address a reported vulnerabilityNo application code changes included.
Written by Cursor Bugbot for commit f641f70. This will update automatically on new commits. Configure here.