Note: Make sure you have completed the React Native - Environment Setup instructions till "Creating a new application" step, before proceeding.
First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using npm
npm start
# OR using Yarn
yarn start
Let Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using npm
npm run android
# OR using Yarn
yarn android
Run the below command in project root directory.
cd android && ./gradlew :app:signingReport
npx react-native-asset
Navigate to the folder :
For Windows:
C:\Program Files\Java\jdkx.x.x_x\bin
keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
For Mac:
/Library/Java/JavaVirtualMachines/jdkX.X.X_XXX.jdk/Contents/Home
sudo keytool -genkey -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
npm i -g react-native-version
For changing the version :
react-native-version --never-amend