React Native官方DEMO
官方给我们提供了UIExplorer项目,这里边包含React Native的基本所有组件的使用介绍和方法。 运行官方DEMO步骤如下
References windows版本编译运行react-native官方实例 效果如下 该DEMO包含了react native主要组件与API的实例COMPONETS
AIPS
官方Movie实例The Movies app is a demonstration of basic concepts,such as fetching data,rendering a list of data including images,and navigating between different screens. Running this app Before running the app,make sure you ran: git clone https://github.com/facebook/react-native.git
cd react-native
npm install
Running on Android You’ll need to have all the prerequisites (SDK,NDK) for Building React Native installed. Start an Android emulator (Genymotion is recommended). cd react-native
./gradlew :Examples:Movies:android:app:installDebug
./packager/packager.sh
Note: Building for the first time can take a while. Open the Movies app in your emulator. See Running on Device in case you want to use a physical device. effect (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |