Getting Started With React Native
To develop apps with React Native, instead NodeJS and npm. Expo is very particular about the build version, so you can have multiple versions of NodeJS installed using nvm like this:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nvm install 16.15.0
nvm use 16.15.0
#nvm use system #to go back to the default system NodeJS
Install the expo cli with the command:
npm install -g expo-cli
Then, using expo create and run a new project
expo init project1
cd project1
expo run:ios
expo run:android
To create the .apk/.ipa, run the following:
expo build:ios
expo build:android