公司让用RN开发内部的经销商应用,把网站(vue开发)的在做一个移动版,因此,开始了RN的挖坑填坑之路…
所用的package.json,有的插件可直接安装,有的需要react link,
{
"name": "dealerTest",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"moment": "^2.19.3", // 日期格式化,话不多说
"native-base": "^2.3.3", // RN的一个UI,简单好用
"react": "16.0.0",
"react-native": "0.50.3",
"react-native-device-info": "^0.12.1", // 登录必用的取设备ID(react link),IOS需要单独配置
"react-native-flexi-radio-button": "^0.2.2", // 一个RadioButton的小插件,好用
"react-native-storage": "^0.2.2", // 本地存储,想存的都可以存
"react-native-vector-icons": "^4.4.2", // ICON必备,图标丰富(react link)
"react-navigation": "^1.0.0-beta.19" // 导航插件,好用
},
"devDependencies": {
"babel-jest": "21.2.0",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0"
},
"jest": {
"preset": "react-native"
}
}