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
@raf2k07
As it says in this matter, now the ip of the wsa is the same as your machine.
ex: 192.168.0.2:58526
https://winaero.com/windows-subsystem-for-android-has-got-new-settings-and-networking-improvements/