r/bashonubuntuonwindows • u/xike456 • Oct 22 '21
WSA Develop React Native app inside WSL2 with WSA
1
u/LyfeFix Oct 23 '21
Is Arch available on WSL?
1
u/xike456 Oct 23 '21
Unofficial. There is a distribution maintained by yuk7 (https://github.com/yuk7/ArchWSL). I'm currently dual-booting Arch, so I prefer Arch over Ubuntu
1
u/raf2k07 Oct 23 '21
Does this work with non-expo apps?
1
u/xike456 Oct 23 '21
I believe so. Expo just more convenience. You can just setup follow react-native cli, connect to virtual device via ADB and I think you should good to go
1
u/raf2k07 Oct 23 '21
this is incredible, I've been using this: https://gist.github.com/bergmannjg/461958db03c6ae41a66d264ae6504ade
for react native development but I'll definitely have to give this a try!!!!1
u/xike456 Oct 23 '21
I have tried that method. I think it basically set up react-native dev-env in WSL, then forward `adb on windows` to `adb on Linux. But it is not smooth and stable enough for daily usage
1
u/raf2k07 Oct 23 '21
Yeah it's definitely not without its flaws. I'll have to try this out and see. Thanks for posting this, you're a legend!
1
Oct 26 '21
May i ask: is this Arch WSL good? I know it's not official, but i'd like to install it in Windows. However, if it is slower or buggy, i'd prefer to just install ubuntu or debian, since i don't want to have headaches with that.
Of course i prefer arch, but that's not so important if it's just a WSL... Is it worh it?
1
u/xike456 Oct 28 '21
I switch to arch full-time and no problem so far. I think it's stable enough for daily usage. Ubuntu is really good too. But it's just about preference. I dual-boot arch so I find it easier to use WSL Arch
1
u/der_kobold Oct 22 '21
Are the Google Services available in the subsystem?
1
u/xike456 Oct 23 '21
Not yet. But there is in progress post https://github.com/ADeltaX/WSAGAScript?s
1
1
0
Oct 22 '21
[deleted]
5
u/xike456 Oct 23 '21
Step-by-step to run on WSL. Feel free to contribute
https://gist.github.com/xquangdang/d52c8d7d37e396750fca37525aa034d79
u/xike456 Oct 22 '21
I'm out for dinner right now. I will create a gist for you when got home
1
1
u/nochkin Oct 23 '21
RemindMe! 1 day
1
u/RemindMeBot Oct 23 '21 edited Oct 23 '21
I will be messaging you in 1 day on 2021-10-24 01:04:33 UTC to remind you of this link
1 OTHERS CLICKED THIS LINK to send a PM to also be reminded and to reduce spam.
Parent commenter can delete this message to hide from others.
Info Custom Your Reminders Feedback 1
7
u/xike456 Oct 23 '21
Step-by-step to run on WSL
https://gist.github.com/xquangdang/d52c8d7d37e396750fca37525aa034d7