lumengwei / DDGMeiTuan

This is my first React Native project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MeiTuan App Write In latest React-Native(0.44.0)

Github:https://github.com/dudongge/DDGMeiTuan

简书:http://www.jianshu.com/p/42097aa798fa

screen shot for iOS

## screen shot for Android

Setup

  1. Clone the repo
$ git clone https://github.com/dudongge/DDGMeiTuan.git
$ cd DDGMeiTuan
  1. Install dependencies (npm v3+):
$ npm install
  1. Running on iOS:
$ react-native run-ios

Troubleshooting

Could not connect to development server

In a separate terminal window run:

$ react-native start

Dependency

Contact

At last

If you like this project, please give me a star :)

高仿美团客户端 React-Native版(0.44.0)

简介

这是一个用React-Native写的美团客户端。

使用了React-Native 0.44.0版本。遵循ES6语法。

主要实现了美团的四个一级页面(团购、附近、订单、我的),以及部分二级页面(团购详情、Web页面)。

所有功能都是用JavaScript写的,iOS和Android的代码复用率达到了100%(因为只写了一套代码)。

开发时所用的工具是webStrom. 安装破解汉化 http://www.jianshu.com/p/97bb2096c24c。

App的页面跳转、TabBar、Navigation,全部通过react-navigation实现。这是一个非常牛逼的库,可以实现很多自定义的跳转功能。最早是通过react-native-router-flux实现跳转。在遇见react-navigation后,我果断放弃了react-native-router-flux。

App中很多页面都使用了同一个网络接口,这不是为了让代码更加简洁,因为接口有限😑 >.<

第三方依赖

安装

  1. Clone the repo
$ git clone https://github.com/dudongge/DDGMeiTuan.git
$ cd DDGMeiTuan
  1. Install dependencies (npm v3+)
$ npm install
  1. Running on iOS
$ react-native run-ios

常见问题

Could not connect to development server

打开新的terminal窗口,并执行:

$ react-native start

如果对您有帮助,开心的给个star吧

江南烟雨绕城郭, 白银盘里绕青螺。 天下儿女多才俊, 最是风流杜东阁 --目前就职于上海二三四五网络 希望和各路大神交流切磋。 Github:https://github.com/dudongge/DDGMeiTuan

About

This is my first React Native project.

License:MIT License


Languages

Language:JavaScript 91.0%Language:Objective-C 5.4%Language:Python 2.1%Language:Java 1.6%