演示项目-不提供后台服务(感谢React Native Starter Kit)
1.进行开发时候打开debug模式 开启chrome浏览器打开console控制台不然会卡,正式打包不会有该问题
2017年01月25日
1.克隆React Native Starter Kit重新命名项目
2.修改图标(IOS & Android)
- 项目特色
- 项目开始前
- Getting Started with React Native
- React Native 快速使用建议
- 项目文件结构
- 该项目可选的手册
- 使用该项目
- 获取项目运行项目
- 重命名项目
- 导航器
- 谷歌分析组件
- Interacting with a REST API
- 测试
Feature | Summary |
---|---|
Redux | A predictable state container - Helping you write applications that behave consistently and run in different environments. |
React Native Router Flux | Router for React Native based on new React Native Navigation API. 'How to' Guide → |
API Example | A basic example showing how you can interact with a RESTful API with user authentication (JWT). |
Sidebar / Hamburger Menu | ... |
React Native Elements | Cross Platform React Native UI Toolkit. |
Google Analytics | Shows how to track screen views (includes both a 'debug' mode tracker as well as 'release' mode so that data doesn't get obfuscated). Setup Guide → |
React Native Vector Icons | Easily use icons from a wide range of icon libraries, it's as simple as importing the icon font and then <Icon name={'ios-alert-outline'} size={50} color={"#CCC"} /> . |
Tcomb Form Validation | An example on how to create forms with validation. |
Component Style Guide | A bunch of elements and components to get you started - styled headings, buttons, list rows, alerts etc. |
Code Linting / Code Style Guide | We're using Airbnb's JS/React Style Guide with ESLint linting. Get started with linting for React Native → |
Boilerplate | An example directory/file structure I've found useful for scaling apps Learn more → |
- 确保按照该 React Native - Get Started Guide 项目开始选择自己的平台
- 克隆到本地
git clone https://github.com/LancCJ/react-native-cyber-police.git
- 在项目根目录下运行
npm install
命令 - 在 模拟器中运行项目
/android
- 安卓原生代码/ios
- 苹果原生代码/src
- 包含所有React Native代码-
/components
- 'Dumb-components' / presentational. 更多 → -
/constants
- App-wide variables and config -
/containers
- 'Smart-components' / the business logic. 更多 → -
/images
- 图片 -
/lib
- 工具类,通用函数 -
/navigation
- 导航器组件 更多 → -
/redux
- 状态管理组件 更多 → -
/theme
- 主题和一些自定义字符串 -
/localData
- 开发期间模拟本地数据 -
/police
- CyberPolice业务
-