Amir Ben Shimol
Amir Ben Shimol

Reputation: 704

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!

Upvotes: 1

Views: 44

Answers (1)

Amir Ben Shimol
Amir Ben Shimol

Reputation: 704

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

Should make sure that:

  • Loading the bundle correctly on the AppDelegate.m file:
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

Upvotes: 1

Related Questions