Visit react-native to refer to their list. React-Native requires Android SDK to be installed, including adb
- Install Amazon App Store, it'll ask you to install Windows Subsystem for Android
- Once installation is done, go ahead and open Windows Subsystem for Android on Windows. This is the app to control Android settings.
- Uncheck
Advanced Networking
. You may not be able to connect to server hosted in WSL from Android in this mode (similar to WSL trying to connect to application running in Windows). This put Android in non-magic WSL networking - Turn off WSA (there's button to do that). Optional: Set
System resources
toContinuos
so the Android is left running when all apps are closed - Visit
Developer
tab to accessManage developer settings
. This to trigger Android app to start again. - Look for search box, type in
ip
, it would help you to get the IP of the WSA, take it - From WSL, use
adb connect <ip above>:58526
to etablish connection to expo. You only need this for expo to install expo-go app, so IP is not that important - Once you are done, you are good to go dev
- Go
- Start with
expo start
on react-native, it'll show the barcode as well as the expo:// URL, copy that url - You can open Windows, search for
Expo Go
, you should be able to access Expo Go app in Android directly - Paste in the expo:// you copied, should be good to go from there
- To get expo to work, we'll need 2 things.
- Expo-Go client that'll pull bundle from
- Expo server, which will be started at port
19000
as we go withexpo start
- Because both WSL and WSA are in mesh networking, it can access each other via IP. With advanced networking, WSA cannot see server on WSL, as such, it'll fail to pull bundles