# minimerchant **Repository Path**: M_genius/minimerchant ## Basic Information - **Project Name**: minimerchant - **Description**: 小程序商户端 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-11-27 - **Last Updated**: 2023-12-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Coin2Stock App ## 系统要求 - node v8.9.11+ - npm v6.0.0+ ## 开发说明 ### 安装 ``` npm install react-native-cli --global npm install react-native link npm start ``` 更多详情请参考链接:https://facebook.github.io/react-native/docs/getting-started.html ### XCode 手动安装 CameraRoll 库 参考链接:https://youtu.be/e3ReNbQu79c ## 模拟器 - IPhone 模拟器直接打开 XCode 的模拟器即可 - 安卓模拟器推荐使用[Genymotion](https://www.genymotion.com/) ## 调试 - 安装 [React Native Debugger](https://github.com/jhen0409/react-native-debugger) ``` brew update && brew cask install react-native-debugger ``` - 运行命令`npm run debug`启动`React Native Debugger` - 然后选择`Debug Remote JS`即可连接`React Native Debugger` ### 友盟log开关 - 友盟统计日志在测试环境中默认关闭,如需开启,可修改环境配置文件中`UMENG_ANALYTICS_DEBUG`变量: ``` UMENG_ANALYTICS_DEBUG=true ``` ## 多版本运行 ### 安卓 安卓可以通过以下命令运行不同配置的环境: ``` npm run run-android // 运行完整版的app npm run run-android:lite // 运行简化版的app ``` ### iOS * 参照[这个文档](https://github.com/luggit/react-native-config#ios-1)在`XCODE`中增加Scheme * 通过以下命令运行不同配置的环境: ``` npm run run-ios // 运行完整版的app npm run run-ios:lite // 运行简化版的app ``` ## [打包部署](build.md) ## [发布流程](deploy-prd.md) ## 参考文档 - [React Native](https://facebook.github.io/react-native/) - [React-Navigation](https://reactnavigation.org/) - [i18n](https://www.i18next.com/overview/introduction) - [date-fns](https://github.com/date-fns/date-fns) - [redux-persist](https://github.com/rt2zz/redux-persist)