-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android][Windows] Support Running RN for Android on Windows #2780
Comments
See also #2693. It's awesome you got the CLI to work! Can you try starting the packager manually?
|
You should see:
|
@mkonicek Hi
Then I tried
Then I tried
But then I press
I think we are soooo close to get it running on Windows, I only need a bit of help with the last pieces here. Please help, cheers |
Oh OK of course, the problem is
You'll need to replace the code in the CLI that calls
Can you try accessing the packager from your browser?
The "process out of memory" crash is strange. What do you see in the Task Manager? Do you see a lot of |
The 'start' command is defined in
|
@mkonicek The server seems to be working fine until the app request the code, that breaks the server:
http://localhost:8081/index.android.js
http://localhost:8081/index.android.bundle?platform=android This break the development server with this console print:
Any ideas? |
Hey, we are almost there. The development server bug was identified and the details are here. The android app now receives the JS Bundle just fine. The only remaining problem is that the app shows a blank white screen. Please help to identify the problem, thank you. |
Guys i have an eye on your progress! |
Thank you so much @mqli. @mkonicek can you please let us know when all these fixes have made it into master? I think it is important that Windows Support works right away without people have to dig through Git Issues to get it running. And since we have a working solution now, it would be great if you could get it into master soon. Thanks guys |
I've collated all the work from others into a set of instructions over here. I'd like to keep this updated so if anyone has a problem + fix please comment on the gist and I'll update it. https://gist.github.com/davidgilbertson/9bee68548037fe00f2a8 |
Guys, that works! thanks to the wonderful gist made by @davidgilbertson https://gist.github.com/davidgilbertson/9bee68548037fe00f2a8 here are two screenshots: |
@BerndWessels Hey, do you know if this is still an issue? Thanks! |
Hi @jsierles . Sorry I can't tell at the moment since I am too busy with some Relay issues. I will give it another try as soon as possible but trust the guys here if they say its working. Thanks |
OK, thanks! Closing this out for now. Feel free to reopen if you're still having issues. |
Hello
I believe masses of people are very excited about React Native now finally supporting Android too.
BUT there will be a huge disappointment that it does not support developing on Windows machines - which in many cases will prevent the uptake of React Native in bigger companies which can't just change their main OS.
I digged a bit and it seems not to hard to get it running on Windows anyway.
Change from spawn to
requirejs.exec
inreact-native-cli
index.js
like this:This change enables me to run
react-native run-android
without any visible errors. It starts the emulator and the app.The only last missing piece to get it running on Windows is:
Why does the development server not work - or why can't the app connect to it?
I get "Unable to download JS Bundle..." red screen of death. It seems that
react-native run-android
failed to start it, even though it printsStarting JS server...
. See the complete output at the bottom.So please please, this is such an important issue to have a working Windows version for the uptake of React and should really not be to difficult to fix for you guys.
Please fix it and help us become a huge community.
Cheers
Bernd
The text was updated successfully, but these errors were encountered: