react-nativeexpobundlecode-push

Can Expo[51] Bare Workflow App Run a Bundle Generated from react-native bundle Command?


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

My Question:

Any advice or clarification on this would be much appreciated. Thanks!


Solution

  • Yes, ejected Expo SDK 51 app (bare workflow) can run a JavaScript bundle generated by the react-native bundle command.

    Should make sure that:

    jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];