FAQs
What API specification should I be looking at while developing?
Apps made with Create React Native App support everything in the Components and APIs sections of the React Native Documentation.
Apps made with Create React Native App also support most of the JavaScript-to-Native APIs provided by the Expo SDK, since they are loaded by the Expo app.
What are the limitations of Create React Native App?
The main limitation of a Create React Native App project is that it must be written in pure JavaScript and not have any dependencies which rely on custom native code (i.e. ones which require running react-native link to work). This allows the projects to load directly on a phone without native compilation, and also means that it's not necessary to install or use Android Studio or Xcode.
What if I want to write custom native code for my app?
If you're sure that you need custom native code, please read the ejecting guide.
How do I get my app into the Play Store/App Store?
If you need to build IPAs and APKs for publishing to the App Store and/or Play Store, you can either eject (see above guide) and build them yourself using Xcode and Android Studio, or you can use a service like Expo's standalone app builds to publish your pure JS app.
问答
What API specification should I be looking at while developing?
CRNA支持RN的Coponents和APIs章节的所有api (React Native Documentation)
CRNA支持几乎所有Expo SDK提供的JavaScript调用Native的APIs
Apps made with Create React Native App also support most of the JavaScript-to-Native APIs provided by the Expo SDK, since they are loaded by the Expo app.
项目Create React Native App有哪些限制?
CRNA的主要限制在于,他没有依赖自定义原生代码的依赖库,即那些需要运行react-native link命令才能工作的库。我们可以直接在手机中加载工程,而不需要本地的编译环境。也就没有使用Android Studio 或 Xcode的必要了。
如果我需要为我的app写自定义的原生代码(native code),该怎么办?
如果你确定需要,请阅读ejecting guide.
怎么样才能将我的app发布到应用商店?
如果你需要build IPAs 和 APKs,以便可以将app发布到苹果或安卓商店,有以下2个途径:
1、eject(看上面的问答)然后使用Xcode和Android Studio build代码;
2、使用Expo's standalone app builds服务来发布你的纯JS app。