magento-react-native
magento-react-native copied to clipboard
Unable to install app on android devices
Unable to install app on android devices. Getting error while install app on android device
- Device: Andorid Pixel 6 API:34
- react: "18.2.0",
- react-native: "0.72.3",
- Nodejs Version: v16.20.1
Please find attachment.
react: "18.2.0", react-native: "0.72.3",
where did you get those versions?
Tried "react": "17.0.1", "react-native": "0.64.2",
But getting error.
Have you followed all the react native upgrade steps? https://react-native-community.github.io/upgrade-helper/?from=0.64.2&to=0.72.3
No. I just tried fresh repo.
in this case, it will not work for sure.
I just followed:
git clone https://github.com/dimaportenko/magento-react-native.git npm install npx react-native run-android
can you run the newly created React Native application version 0.64.2? like
npx [email protected] init AwesomeProject
npx [email protected] init AwesomeProject
Installed and run:
"dependencies": { "react": "18.2.0", "react-native": "0.72.3" },
Ok, generally this project isn't maintained anymore. So I don't really know if version 0.64.2 is still working. You probably need to upgrade it before running it, but since you aren't familiar with react native it could be difficult to do.
If you are going to create React Native application for Magento 2 I recommend you to watch tutorials https://www.youtube.com/playlist?list=PL97fL9DAn9QyNAWAh-X-mFJdXKm96AqVM, I basically captured the process of creation from scratch.
Also, nowadays I recommend start new react native project with https://docs.expo.dev/. Which should be simpler for newcomers to start mobile development.