jibenziliao / react-native-app

使用React-Native+Redux开发的交友APP

Home Page:https://github.com/jibenziliao/react-native-app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-app

觅友 Meet U

git clone https://github.com/jibenziliao/react-native-app.git
npm install
react-native link

首页截图 寻TA截图 相册截图

下载地址

iOS版正在重构,即将上线。

App小范围试用,短信通道暂时关闭。

可使用测试账号登录:

账号:18988888888

密码:111111

Android版本已上线Google Play

Alt text

也可以从蒲公英下载测试版(两个签名不一样,不能共存)

觅友 Meet U

说明

  1. 插件react-native-swipe-cards0.0.9版本有bug(最新版已改名:react-native-tinder-swipe-cards)

    0.0.9版本第95行if判断条件替换为如下内容

    nextProps.cards && nextProps.cards.length > 0 && (nextProps.cards[0].UserId !== this.props.cards[0].UserId || nextProps.refresh !== this.props.refresh)
  2. react-native版本是0.38.0,不要轻易升级react-native版本。0.39.0、0.39.1、0.39.2在iOS平台跟cocoapods不太兼容,编译各种报错。本人对原生不是很熟悉,所以退而求其次,使用react-native@0.38.0

  3. 因集成极光推送插件,xCode需更新到8.2.1版本,以便支持iOS10,在iOS工程target的Build Phases->Link Binary with Libraries中加入如下库

    libz.tbd

    CoreTelephony.framework

    Security.framework

    CFNetwork.framework

    CoreFoundation.framework

    SystemConfiguration.framework

    Foundation.framework

    UIKit.framework

    UserNotifications.framework

    libresolv.tbd

    关于极光推送插件详细配置,请参考极光推送插件 jpush-react-native文档,及这篇博客 react native极光推送全程教程android和ios

Android

注意事项

  1. 如下图所示,如果你的SDK Tools中的Google Play Service版本比较新,你需要更改第三方插件( react-native-maps )中的一些参数:

Alt text

在node_modules/react-native-maps/Android目录下,修改build.gradle文件中的dependences为如下内容: Alt text

dependencies {
   compile 'com.facebook.react:react-native:+'
-  compile "com.google.android.gms:play-services-base:9.0.4"
-  compile 'com.google.android.gms:play-services-maps:9.0.4'
+  compile "com.google.android.gms:play-services-base:10.0.1"
+  compile 'com.google.android.gms:play-services-maps:10.0.1'
}
react-native run-android

iOS

注意事项

  1. iOS真机调试无法开启dev菜单,可能跟Libraries有关,在模拟器上可以使用开发者菜单进行调试。(对原生不太熟悉,暂时没有解决)
react-native run-ios

About

使用React-Native+Redux开发的交友APP

https://github.com/jibenziliao/react-native-app


Languages

Language:JavaScript 95.9%Language:HTML 1.8%Language:Objective-C 1.4%Language:Java 0.4%Language:Python 0.3%Language:CSS 0.1%Language:Ruby 0.1%