by

React-native with android

First check the following two posts: https://blog.ciprianpascu.ro/2019/07/09/install-node-js-and-npm/ and https://blog.ciprianpascu.ro/2020/02/01/android-studio-on-ubuntu/ after which you should add the following lines into your .bashrc file:

export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

React-native is using gradle behind the scenes. Check it is correctly installed and used by the app by running the following command in app/android folder:

gradle wrapper

Start metro server:

npm run-script start

Run the application

npx react-native run-android

Write a Comment

Comment