I’m working with an ejected Expo SDK 51 app (bare workflow) and I want to bundle my JavaScript code using the react-native bundle command instead of the default Expo bundling process. (npx expo export
)
react-native bundle --entry-file index.js --bundle-output ./output/main.jsbundle --platform ios --dev false --assets-dest ./output
Any advice or clarification on this would be much appreciated. Thanks!
Yes, ejected Expo SDK 51 app (bare workflow) can run a JavaScript bundle generated by the react-native bundle command.
Should make sure that:
AppDelegate.m
file:jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];