Coder Social home page Coder Social logo

flowermate's Introduction

flowermate

本示例代码仅用于教学。

配套用服务端代码见 https://github.com/sunnylqm/flowermate-server

环境配置

请参考 https://reactnative.cn/docs/getting-started/

运行

yarn
# ios模拟器上运行
npx pod-install
yarn ios
# 安卓设备上运行
yarn android

项目结构

项目建议结构


├── android  
├── assets // 静态资源   
├── index.js // 入口文件  
├── ios  
├── patches // 有时要给第三方打补丁(patch-package)  
├── scripts // 放一些自动化辅助脚本  
└── src  
  ├── components // 全局复用的非全屏组件  
  ├── routers // 页面路由结构声明(stack, tab, drawer)  
  ├── screens // 全屏页面组件(可以继续嵌套 components)  
  ├── reduxState // redux 相关  
  │   ├── actions.ts  
  │   ├── reducers  
  │   ├── store.ts  
  │   └── selectors.ts  
  ├── types // 类型声明  
  ├── utils // 辅助函数、常量、配置等   
  │   ├── navService.ts   
  │   ├── constants.ts  
  │   ├── config.ts  
  │   └── request.ts  
  └── App.tsx  

版权声明

App图标取自Flaticon,由Freepik制作。可在申明原作者版权的前提下自由使用。

启动背景图为本人拍摄,可自由使用。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.