React Native美团项目
运行前请参考package.json文件需要的第三方库安装第三方库,或者直接使用npm install命令 安装依赖库(react native 0.51.0版本,最新版本请升级)。React Native最新的版本是0.55.2,有需要的可以新建一个RN项目后,将src目录下相关的项目拷贝过去,如果运行有问题,请按照提示进行相关修正。
由于项目中使用的navigator被RN官方在0.44版本去除,所以在后面的版本中需要使用库:react-native-deprecated-custom-components。相关知识可以访问navigator报错。
诸如此类问题,请大家根据最新的API进行相关修正!!!
建议使用WebStrom进行开发,并使用Yarn方式来管理项目依赖。
依赖环境安装好后,然后使用命令运行项目:
react-native run-android
react-native run-ios
Copyright (C) 2017
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.