-
Notifications
You must be signed in to change notification settings - Fork 0
ignite Boilerplate
flyw edited this page Jul 12, 2018
·
3 revisions

https://github.com/flyw/react-native-tutorial/tree/master

https://github.com/flyw/react-native-tutorial/tree/master/App

https://github.com/flyw/react-native-tutorial/tree/master/App/Containers
容器文件夹
这里有2个特殊容器:App.js和RootContainer.js。
App.js是在index.ios.js或index.android.js之后加载的第一个组件。 此文件的目的是设置Redux或任何其他非可视“全局”模块。 在此处进行Redux设置有助于在开发期间使用React Native中的热重新加载过程,因为如果颜色发生变化(例如),它将不会尝试重新加载您的sagas 和 reducers。
RootContainer.js是应用程序中的第一个可视组件。 它是所有其他屏幕和组件的祖先。
执行 ignite generate 创建组件
可以创建的组件配型包含
