Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cturner8/react-native-devcontainer
A sample for working with React Native using a VS Code Dev Container
https://github.com/cturner8/react-native-devcontainer
Last synced: 22 days ago
JSON representation
A sample for working with React Native using a VS Code Dev Container
- Host: GitHub
- URL: https://github.com/cturner8/react-native-devcontainer
- Owner: cturner8
- Created: 2023-02-19T13:47:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-02-19T18:31:38.000Z (over 1 year ago)
- Last Synced: 2024-10-12T23:41:44.217Z (about 1 month ago)
- Language: TypeScript
- Size: 193 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-devcontainer
A sample for working with React Native using a VS Code Dev Container
## WSL / WSA Resources
- [Windows Subsystem for Android](https://learn.microsoft.com/en-us/windows/android/wsa/)
- [WSA - Test and Debug using `adb`](https://learn.microsoft.com/en-us/windows/android/wsa/#test-and-debug)
- [Access localhost from Windows inside WSL](https://superuser.com/a/1679774)
- From WSL Terminal, execute `adb connect "$(hostname).local":58526` to connect to windows host.
- Install Android SDK in WSL: `sudo apt update && sudo apt install android-sdk -y`. Stack overflow [post](https://stackoverflow.com/a/34627928).
- [Add Android Home environment variable](https://stackoverflow.com/a/37368367)
- Run `source ~/.zshrc` (or source `~/.bashrc` if using bash) to apply the update## Dev Container Resources
- [VS Code - Developing inside a container](https://code.visualstudio.com/docs/devcontainers/containers)
- [Updating PATH env variable for dev container](https://code.visualstudio.com/remote/advancedcontainers/environment-variables#_option-1-add-individual-variables)
- [Docker - Connecting to host from inside container](https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host)## Troubleshooting
- Ensure WSA developer mode is enabled
- If adb device is being marked as unauthorized, go to WSA settings menu, in the developer mode area, click "manage developer settings" and a popup should appear to allow the RSA fingerprint. Once allowed, the adb device should be authorized.