pretty format in Sublime

Hit ctrl+shift+p to bring up a pop up text field and type “install package control”

Hit ctrl+shift+p and type “package control: install package”, and then type “pretty” and select Pretty JSON

Restart Sublime and execute alt+ctrl+j on the selected text.

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

Android studio on Ubuntu

Verify the installation by typing the following command which will print the Java version. If it doesn’t exit, install java 8 or greater:

java -version
sudo apt install openjdk-8-jdk

Check whether KVM is currently installed on Linux. If it doesn’t exist, install it:

$ sudo apt-get install cpu-checker
$ egrep -c '(vmx|svm)' /proc/cpuinfo
12
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used
$ sudo apt install qemu-kvm

Install android studio:

sudo snap install android-studio --classic