This tutorial will run on Ubuntu 20.04
- Install Android debug bridge (
adb
)
$ sudo apt install adb
- Connect to WSA
- Connect to WSA via IP
$ adb connect <wsa-ip:port>
- Make sure ADB connect successfully
$ adb devices
List of devices attached
172.19.99.153:5555 device
I'll follow tutorial on ReactNative.dev
# Assuming that you have Node 12 LTS or greater installed, you can use npm to install the Expo CLI command line utility
$ sudo npm install -g expo-cli
# Then run the following commands to create a new React Native project called "AwesomeProject"
$ expo init AwesomeProject
cd AwesomeProject
$ npm start # you can also use: expo start
Set environment path in your bash profile:
`export ANDROID_HOME=/home/xxxx/Android
export ANDROID_SDK_ROOT=/home/xxxx/Android
PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools
PATH=$PATH:$ANDROID_HOME/bin
`