Last active
November 15, 2015 02:51
-
-
Save unclebean/7ccc676cbefbbd9f0e80 to your computer and use it in GitHub Desktop.
react-native trouble-shooting
This file contains 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 characters
android - unable to download js bundle | |
http://stackoverflow.com/questions/32572399/react-native-android-failed-to-load-js-bundle | |
"create an assets folder under android/app/src/main" | |
watchman issue | |
watchman shutdown-server | |
brew update && brew upgrade | |
brew uninstall --force watchman | |
brew install watchman | |
iOS - unable to download js bundle | |
https://github.com/facebook/react-native/issues/240#issuecomment-86977126 | |
Open iOS/AppDelegate.m | |
Comment out jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"]; | |
Uncomment jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"]; | |
curl http://localhost:8081/index.ios.bundle -o main.jsbundle - if this fails (as it did on my machine) add the --ipv4 flag to the end of it. | |
Add Files to "Project Name Here" - choose the main.jsbundle file that you generated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment