Expo vs React Native Bare
Expo managed workflow, Expo Go, prebuild, Expo Modules, config plugins, custom native code, ejection, EAS
1What is the main difference between Expo managed workflow and bare React Native workflow?
What is the main difference between Expo managed workflow and bare React Native workflow?
回答
Expo managed workflow abstracts native configuration (ios/ and android/) and automatically handles native dependencies through Expo Go or EAS cloud builds. The bare workflow exposes complete native folders, offering full control over native code but requiring manual configuration and maintenance of Xcode and Android Studio projects.
2What is the Expo Go app and what is its main limitation?
What is the Expo Go app and what is its main limitation?
回答
Expo Go is a client app downloadable from App Store and Play Store that allows instant testing of Expo projects without native builds. Its main limitation is that it only supports native modules included in the Expo SDK. Libraries with custom native code don't work in Expo Go, requiring a custom development build instead.
3What is the purpose of the expo prebuild command in an Expo project?
What is the purpose of the expo prebuild command in an Expo project?
回答
The expo prebuild command generates the native ios/ and android/ folders from app.json/app.config.js configuration and config plugins. This is the Continuous Native Generation (CNG) concept: native folders are generated on-demand rather than manually maintained. It allows having a managed project with bare capabilities when needed.
What is a development build in the Expo ecosystem?
What are config plugins used for in Expo?
+15 面接問題