Skip to content
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

Update build-run instructions in docs #4148

Merged
merged 3 commits into from
Jun 12, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/howto/build-run.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Apart from the steps mentioned below, you may find the

[React Native troubleshooting docs]: https://reactnative.dev/docs/troubleshooting


### `yarn install` failure, at `fsevents`

When running `yarn install` on initial setup, if you see an error like
Expand Down Expand Up @@ -420,6 +421,22 @@ sudo sysctl -p
```


### Debug app crashes with "Unable to load script" at startup

After running `react-native run-android` or `react-native run-ios`, if
you see an error like this on the device:

> Unable to load script. Make sure you're either running a Metro
> server (run 'react-native start') or that your bundle
> 'index.android.bundle' is packaged correctly for release.

then this means you are not running the Metro bundler.

Starting from React Native 0.60, you need to launch the Metro bundler server
separately, using `react-native start`. Once the server starts up, run
`react-native run-android` again, and the app should not crash.


### Red error banner about method `-[RCTAppState getCurrentAppState:error:]`

This should only happen when building old versions of the app, from
Expand Down