generate ios build react native 1

generate ios build react native

react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios

Here is what the above code is Doing:
1. We’re using the react-native bundle command to bundle our JavaScript code.
2. We’re telling it to use the index.js file as the entry point.
3. We’re telling it to bundle for the iOS platform.
4. We’re telling it to bundle in production mode.
5. We’re telling it to output the bundle to the ios/main.jsbundle file.
6. We’re telling it to output the assets to the ios folder.

Similar Posts