Skip to content
Closed
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 samples/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@babel/core": "^7.26.7",
"@babel/preset-env": "^7.26.7",
"@babel/runtime": "^7.26.7",
"@react-native-community/cli": "19.1.1",
"@react-native-community/cli": "20.0.0",
"@react-native-community/cli-platform-android": "19.1.1",
"@react-native-community/cli-platform-ios": "19.1.1",
Comment on lines +54 to 56
Copy link

Choose a reason for hiding this comment

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

Bug: CLI v20.0.0 requires react-native ^0.81.0 or ^0.82.0, but the app uses 0.80.2.
Severity: HIGH | Confidence: 0.95

🔍 Detailed Analysis

The @react-native-community/cli package was updated to version 20.0.0, but this version requires react-native version ^0.81.0 or ^0.82.0. The sample application's package.json specifies react-native version 0.80.2. This version mismatch will prevent the CLI from functioning correctly when executing commands like npm run ios or npm run android within the sample application.

💡 Suggested Fix

Update the react-native dependency in samples/react-native/package.json to a version compatible with @react-native-community/cli 20.0.0, such as ^0.81.0 or ^0.82.0. Alternatively, downgrade @react-native-community/cli to a version compatible with react-native@0.80.2.

🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: samples/react-native/package.json#L54-L56

Potential issue: The `@react-native-community/cli` package was updated to version
20.0.0, but this version requires `react-native` version `^0.81.0` or `^0.82.0`. The
sample application's `package.json` specifies `react-native` version `0.80.2`. This
version mismatch will prevent the CLI from functioning correctly when executing commands
like `npm run ios` or `npm run android` within the sample application.

Did we get this right? 👍 / 👎 to inform future reviews.

"@react-native/babel-preset": "0.80.2",
Expand Down
Loading