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

react-native bundle command not recognized #1027

Closed
davidpfahler opened this issue Apr 26, 2015 · 3 comments
Closed

react-native bundle command not recognized #1027

davidpfahler opened this issue Apr 26, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@davidpfahler
Copy link

On Running On Device, section Using offline bundle, it says:

Run the react-native bundle command in terminal from the root directory of your app

Unfortunately, when I tried to bundle my react-native app in this way, but all I got was this:

$ react-native bundle
Command `bundle` unrecognized
Usage: react-native <command>

Commands:
  start: starts the webserver
  install: installs npm react components

I'm running react-native-cli@0.1.3 and my react-native is based on 0.4.0.

Please clarify what the proper way is to bundle your app for distribution. Thank you :)

@brentvatne
Copy link
Collaborator

@davidpfahler - it looks like this made it into the docs because it was included into the release - see comment here - it is merged into master but still not on npm. Until then you can use the former approach: curl 'http://localhost:8081/index.ios.bundle?dev=false&minify=true' -o iOS/main.jsbundle

@davidpfahler
Copy link
Author

@brentvatne Thank you very much for your swift response. This indeed works and helped me. However, is there any way we can either ship react-native bundle or update the documentation, so that other people don't run into the same issue?

@brentvatne
Copy link
Collaborator

@davidpfahler - this is live now in 0.4.1, we're tracking the issue of documentation sync in #1022 😄 - if you have any ideas for how we can solve this problem they would be very welcome, thanks!

@facebook facebook locked as resolved and limited conversation to collaborators May 29, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants