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/BiometricAuthExample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"react": "16.0.0",
"react-native": "0.50.1",
"react-native": "0.69.12",
Copy link

Choose a reason for hiding this comment

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

React version incompatible with upgraded React Native

Upgrading react-native from 0.50.1 to 0.69.12 introduces a peer dependency incompatibility. React Native 0.69 requires React 18.x, but the react dependency remains at version 16.0.0. This will cause npm/yarn installation failures or runtime errors due to API differences between React 16 and React 18. The react-test-renderer at 16.0.0 also needs to be updated to match.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link

Choose a reason for hiding this comment

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

Start script references nonexistent CLI path

The start script references node_modules/react-native/local-cli/cli.js, which existed in React Native 0.50.1 but was restructured in later versions. React Native 0.69.12 has the CLI entry point at ./cli.js in the package root. After this upgrade, running npm start will fail with a "module not found" error. The script needs to use npx react-native start or reference the correct CLI path.

Additional Locations (1)

Fix in Cursor Fix in Web

Copy link

Choose a reason for hiding this comment

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

Deprecated Babel preset incompatible with React Native 0.69

The babel-preset-react-native package at version 4.0.0 was deprecated and replaced by metro-react-native-babel-preset in newer React Native versions. React Native 0.69 uses the Metro bundler with the new babel preset structure. The outdated preset will cause transpilation failures when building the app, as it doesn't support the syntax and transforms required by React Native 0.69.

Additional Locations (1)

Fix in Cursor Fix in Web

"react-native-passcode-auth": "0.1.0",
"react-native-touch-id": "../.."
},
Expand Down