RN 创建项目

安装 react-native-cli 命令:

npm install -g react-native-cli

创建名为AwesomeProject的项目:

react-native init AwesomeProject



常用第三方组件

react-native-check-box  复选框
react-native-sortable-listview  列表排序
react-native-splash-screen  启动屏
react-native-htmlview HTML渲染
react-native-scrollable-tab-view  标签切换
react-native-sortable-listview  列表排序
react-native-tab-navigator   底部导航
react-native-parallax-scroll-view   视差滚动
react-navigation  导航
react-native-modalbox 类似iOS的模态弹窗

react-native-communications    内容:Open a web address or call, email, text or iMessage (iOS only) someone in React Native


react-native-storage 本地持久存储的封装

react-native-communications 使用例子
react-native-communications GitHub

react-native-storage GitHub

自己写的(常用的)

react-native-mzckit

安装

npm install 《名字》 --save

npm i 《名字》 --save

yarn add 《名字》 等于 npm install 《名字》 --save
yarn add -dev 等于 npm install 《名字》 --save-dev

yarn add react-native-check-box react-native-sortable-listview react-native-splash-screen react-native-htmlview react-native-scrollable-tab-view react-native-sortable-listview react-native-tab-navigator react-native-parallax-scroll-view react-navigation react-native-modalbox react-native-communications react-native-mzckit react-native-storage