Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 2.85 KB

README.md

File metadata and controls

76 lines (46 loc) · 2.85 KB

Camellie

第一款基于react-native的App

0 介绍

  1. 暂只支持ios
  2. 下载:git clone https://github.com/camellieeee/Camellie.git
  3. 安装:cd camellie --> npm install --> react-native run-ios
  4. 百度地图配置:http://114.115.218.220/index.php/2017/07/10/baidu/

1 项目文件目录组织

    Camellie
            __tests__                        //测试文件
            android                          //安卓编译之后的文件
            img                         //图片文件
            ios                         //xcode所在文件
            node_modules                  //项目所依赖lib,初创项目使用npm install得到
            src
                common      //配置文件
                    path    //动画库
                    Color.js    //App颜色配置
                    utils.js    //App网络配置
                components      //App组件
                reducers        //reducers
                screens         //页面文件
                app.js
            index.js                //主入口文件
            package.json                  //配置信息

2 页面展示

3 优化加载

打包jsbundle文件 加载成功便于app加载 react-native bundle --entey-file index.ios.js --platform ios --dev false --bndle-output main.ios.jsbundle

4 第三方组件

  1. lottie-react-native
  2. react-native-baidu-map
  3. react-native-cardview
  4. react-native-gifted-chat
  5. react-native-easy-toast
  6. react-native-interactable
  7. react-native-keyboard-aware-scroll-view
  8. react-native-linear-gradient
  9. react-native-navigation
  10. react-native-safari-view
  11. react-native-snap-carousel
  12. react-native-timeline-listview
  13. react-native-vector-icons