-
-
Save kayandra/e18138731333a285a6ec7690fe2f1fb1 to your computer and use it in GitHub Desktop.
Revisions
-
xquangdang revised this gist
Oct 23, 2021 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,7 +19,8 @@ This tutorial will run on Ubuntu 20.04 ``` 2. Connect to WSA  - Connect to WSA via IP ```bash $ adb connect <wsa-ip> -
xquangdang revised this gist
Oct 23, 2021 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -19,8 +19,8 @@ This tutorial will run on Ubuntu 20.04 ``` 2. Connect to WSA  - Connect to WSA via IP ```bash $ adb connect <wsa-ip> ``` -
xquangdang revised this gist
Oct 23, 2021 . No changes.There are no files selected for viewing
-
xquangdang revised this gist
Oct 23, 2021 . 1 changed file with 7 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,33 +15,33 @@ This tutorial will run on Ubuntu 20.04 1. Install Android debug bridge (`adb`) ```bash $ sudo apt install adb ``` 2. Connect to WSA - Connect to WSA via IP  ```bash $ adb connect <wsa-ip> ```  - Make sure ADB connect successfully ```bash $ adb devices List of devices attached 172.19.99.153:5555 device ``` ### React Native setup I'll follow tutorial on [ReactNative.dev](https://reactnative.dev/docs/environment-setup) ```bash # 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 ``` Select `Run on Android device/emulator` in expo web client  -
xquangdang created this gist
Oct 23, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,49 @@ # Develop React Native app with WSL and WSA ## Requirement - Windows Subsystem for Linux 2 ([WSL2](https://docs.microsoft.com/en-us/windows/wsl/install)) - Windows Subsystem for Android ([WSA](https://blogs.windows.com/windows-insider/2021/10/20/announcing-android-apps-on-windows-11-preview-for-windows-insiders-in-the-beta-channel/)) - NodeJS install inside WSL2 ## Steps ### WSA 1. Enable developer mode for WSA  ### WSL2 This tutorial will run on Ubuntu 20.04 1. Install Android debug bridge (`adb`) ```bash sudo apt install adb ``` 2. Connect to WSA - Connect to WSA via IP  ```bash adb connect <wsa-ip> ```  - Make sure ADB connect successfully ```bash adb devices List of devices attached 172.19.99.153:5555 device ``` ### React Native setup I'll follow tutorial on [ReactNative.dev](https://reactnative.dev/docs/environment-setup ```bash # Assuming that you have Node 12 LTS or greater installed, you can use npm to install the Expo CLI command line utility 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 ``` Select `Run on Android device/emulator` in expo web client  ## FAQ