{"id":13372520,"url":"https://github.com/MelonRice/ReactNative-Hupu","last_synced_at":"2025-03-12T23:32:53.258Z","repository":{"id":74834791,"uuid":"123692439","full_name":"MelonRice/ReactNative-Hupu","owner":"MelonRice","description":"A Third-party Hupu App (http://bbs.hupu.com/) client implemented using React Native (Android and iOS).","archived":false,"fork":false,"pushed_at":"2019-01-07T05:08:01.000Z","size":10297,"stargazers_count":29,"open_issues_count":4,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-07-30T03:41:12.563Z","etag":null,"topics":["android","hupu","ios","javascript","react","reactnative"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MelonRice.png","metadata":{"files":{"readme":"README-zh.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2018-03-03T13:03:21.000Z","updated_at":"2024-07-30T03:41:12.563Z","dependencies_parsed_at":"2024-01-07T21:51:27.209Z","dependency_job_id":null,"html_url":"https://github.com/MelonRice/ReactNative-Hupu","commit_stats":null,"previous_names":["melonrice/reactnative-hupujrs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelonRice%2FReactNative-Hupu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelonRice%2FReactNative-Hupu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelonRice%2FReactNative-Hupu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MelonRice%2FReactNative-Hupu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MelonRice","download_url":"https://codeload.github.com/MelonRice/ReactNative-Hupu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243312859,"owners_count":20271159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","hupu","ios","javascript","react","reactnative"],"created_at":"2024-07-30T03:01:20.065Z","updated_at":"2025-03-12T23:32:52.726Z","avatar_url":"https://github.com/MelonRice.png","language":"JavaScript","funding_links":[],"categories":["Open Source Apps"],"sub_categories":["Other Platforms"],"readme":"\n[![LICENSE](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)\n[![platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)\n[![API](https://img.shields.io/badge/API-14%2B-brightgreen.svg?style=flat)](https://android-arsenal.com/api?level=16)\n[![PRs Welcome](https://img.shields.io/badge/prs-welcome-brightgreen.svg)](http://makeapullrequest.com)\n[![Thanks](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/ResolveWang)\n[![GitHub issues](https://img.shields.io/github/issues/MelonRice/ReactNative-HupuJRS.svg?style=plastic)](https://github.com/MelonRice/ReactNative-HupuJRS/issues)\n\n# React-Native-HupuJRS\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/ic_launcher.png\"\u003e\n\n这是一个 `React Native` 版虎扑论坛第三方客户端，可同时兼容Android/iOS平台，共用几乎所有的代码\n\n目前仅提供基本的浏览论坛与帖子功能，后续计划增加登录与回帖功能(之前参考的开源项目登录api无效了)，会持续更新\n\n该应用系本人初学React Native练手之作，比较粗糙，存在诸多bug请多包涵和指正，欢迎提交PR和Issues\n\n本App仅供学习交流React Native技术使用，请勿用于商业用途，欢迎Star和Fork\n\n__免责声明__  \n\n『虎扑』是 *Hupu.Inc* 的注册商标。本软件与其代码 均非 由虎扑创作或维护。它是一个免费软件，使用它不收取您任何费用。其中的所有内容均可在[虎扑论坛](http://bbs.hupu.com)获取。\n\n本项目所有 API 均由 虎扑（HuPu.Inc）以及[虎扑第三方Android开源项目Tlint](https://github.com/gzsll/TLint)提供。获取与共享之行为或有侵犯虎扑权益之嫌。请您暸解相关情况，并遵守虎扑协议。\n\n## 下载\n\n[fir下载Android beta1](https://fir.im/jrsapp)\n\n二维码扫描下载(Android beta1)：\n\u003ccenter\u003e\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/下载.png\"\u003e\u003c/center\u003e\n\niOS版未上架，有mac开发环境即可在本地运行本项目直接[运行](#1)\n\n## 界面\n\n* 主页\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/1.jpeg\" width=\"300\"\u003e\n\n* 侧边栏\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/2.jpeg\" width=\"300\"\u003e\n\n* 选择子论坛\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/3.jpeg\" width=\"300\"\u003e\n\n* 子论坛帖子列表\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/4.jpeg\" width=\"300\"\u003e\n\n* 帖子详情\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/5.jpeg\" width=\"300\"\u003e\n\n* 回复\n\n\u003cimg src=\"https://github.com/MelonRice/ReactNative-HupuJRS/blob/master/screenshot/6.jpeg\" width=\"300\"\u003e\n\n## \u003ch2 id=\"1\"\u003e运行\u003c/h2\u003e\n\n### 环境配置步骤:\n1.安装 nvm\n\n2.安装 nodejs \u003e 9.0\n\u003e 如果之前安装的是其他版本node，请在安装9.0前进行一下以下操作：\n\n\u003e rm -rf node_modules\n\n\u003e nvm use 9.0.0\n\n\u003e npm install\n\n3.npm install -g react-native-cli\n\n4.npm install -g yarn react-native-cli\n\n5.项目根目录: yarn install\n\n6.项目根目录: yarn add babel-plugin-transform-decorators-legacy\n\n7.项目根目录: react-native link\n\n### 多平台运行\n\u003e 注意: 如果运行过程中,Android端报Gradle安装失败或Gradle证书错误，以及iOS端报证书错误，是由于React Native版本默认的gradle与你本地gradle版本不符，或由于我的电脑上的苹果相关证书与你本地环境不匹配造成\n\u003e \n\u003e 首次运行报错时，可以尝试安装并打开Android studio(Android平台)或Xcode(iOS平台)编译器，在编译器中打开项目目录下的 Android / iOS文件夹，根据错误提示在编译器中进行配置或让编译器自行选择下载依赖，可修复大部分初始化安装时的运行报错\n\n#### 模拟器运行(不可同时开多个模拟器):\n* Android: 项目根目录下 react-native run-android\n* iOS: 项目根目录下 react-native run-ios\n\n#### 真机运行:\n\nAndroid:\n\n1.项目根目录下 adb reverse tcp:8081 tcp:8081 (这步操作使最新修改的bundle文件打到真机)\n\n2.在Android studio中打开项目的android目录，然后运行(或使用命令行运行，同模拟器运行方式一致)\n\niOS:\n\n需要本机具有有效的开发者证书，才能在Xcode中用真机使用debug模式运行。\n\n## 开源组件\n\n在项目中使用的一些React Native官方或社区组件介绍:\n\n[babel-plugin-transform-decorators-legacy](https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy): 用于支持decorators\n\n[mobx](https://github.com/mobxjs/mobx): 功能强大,上手容易的状态管理工具\n\n[mobx-react](https://github.com/mobxjs/mobx-react): 配合mobx，使react的组件能够识别mobx状态管理\n\n[native-base](https://github.com/GeekyAnts/NativeBase): 为react native定义的一系列跨平台UI组件\n\n[react-native-htmlview](https://github.com/jsdf/react-native-htmlview): 将 HTML 目录作为本地视图的控件，风格可定制\n\n[react-native-searchbar](https://github.com/localz/react-native-searchbar): 一款带有常用搜索框的组件\n\n[react-navigation](https://github.com/react-navigation/react-navigation): 官方目前推荐使用的导航管理工具\n\n## TODO\n\n1. ~~优化子论坛列表样式~~ (done)\n2. 帖子列表UI样式优化，侧边栏样式优化\n3. 登录功能\n4. 我的帖子(需要登录)\n5. 回帖\n6. RN项目踩坑过程文档分享\n\n## 致谢:heart:\n- 感谢Hupu Android版第三方应用开发者[gzsll](https://github.com/gzsll)的[TLint](https://github.com/gzsll/TLint)项目提供的大量参考，以及在邮件交流过程中提供的热心帮助\n- 感谢`star`支持的网友和在使用过程中提issue或者给出宝贵建议的朋友，你们的支持是我在业余时间继续开发的动力\n\n## License\n\nThis project is available under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMelonRice%2FReactNative-Hupu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMelonRice%2FReactNative-Hupu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMelonRice%2FReactNative-Hupu/lists"}