{"id":13463050,"url":"https://github.com/xiekw2010/react-native-gitfeed","last_synced_at":"2025-05-16T07:04:46.674Z","repository":{"id":150405226,"uuid":"52667901","full_name":"xiekw2010/react-native-gitfeed","owner":"xiekw2010","description":"Yet another Github client written with react-native.","archived":false,"fork":false,"pushed_at":"2017-04-13T02:28:16.000Z","size":2282,"stargazers_count":1718,"open_issues_count":8,"forks_count":276,"subscribers_count":58,"default_branch":"master","last_synced_at":"2025-04-08T16:08:30.780Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/xiekw2010.png","metadata":{"files":{"readme":"README.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,"dei":null}},"created_at":"2016-02-27T13:22:25.000Z","updated_at":"2025-03-14T03:54:31.000Z","dependencies_parsed_at":"2023-04-22T16:15:43.899Z","dependency_job_id":null,"html_url":"https://github.com/xiekw2010/react-native-gitfeed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiekw2010%2Freact-native-gitfeed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiekw2010%2Freact-native-gitfeed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiekw2010%2Freact-native-gitfeed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiekw2010%2Freact-native-gitfeed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiekw2010","download_url":"https://codeload.github.com/xiekw2010/react-native-gitfeed/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485055,"owners_count":22078767,"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":[],"created_at":"2024-07-31T13:00:44.995Z","updated_at":"2025-05-16T07:04:41.655Z","avatar_url":"https://github.com/xiekw2010.png","language":"JavaScript","funding_links":[],"categories":["Open Source Apps","开源APP","JavaScript","开源App"],"sub_categories":["Other Platforms","系列教程","项目实践\u0026教程"],"readme":"# Github Feed\n---\nYet another Github client written in react-native.\n\n## Includes ?\n---\n\n1. Feed like web github home.\n2. Watched repos' notification.\n3. Trends.\n4. Personal.\n\n## How to run iOS\n\n`rm -rf node_modules`\n\n`npm install`\n\nif error about 'EACCS' try\n\n`sudo chown -R $(whoami) \"$HOME/.npm\"`\n\nrun the project in ios dir\n\n(***注意*** 如果要contribute cocoapods 建议使用0.35.0版本！)\n\nin iOS dir\n\n`pod install`\n\n###接入流程\n\n1. 在index.ios.js(index.android.js)里写入Production的 deploymentKey，通常在componentDidMount里写入如下：\n\n```js\nconst codePush = require('react-native-code-push');\n\ncodePush.sync({\n  updateDialog: true,\n  installMode: codePush.InstallMode.IMMEDIATE,\n  deploymentKey: dpkey,\n});\n```\n2. 修改xcode的edit schema 使得build app是 release模式的，在appDelegate里写入：\n```js\nNSURL *jsCodeLocation;\n\n#ifdef DEBUG\njsCodeLocation = [NSURL URLWithString:@\"http://30.10.111.158:8081/index.ios.bundle?platform=ios\u0026dev=true\"];\n\njsCodeLocation = [NSURL URLWithString:[NSString stringWithFormat:@\"http://localhost:8081/index.ios.bundle?platform=ios\u0026dev=true\"]];\n\n#else\njsCodeLocation = [CodePush bundleURL];\n#endif\n```\n3. 随意乱改js文件\n4. 打包 所有js文件在一个其他位置，可以使用`打包需要更新的资源`\n5. 用code-push发布。\n\n## CodePush\n\n注意在打包的目标地址先建立对应的目录比如这里的~/Desktop/release，要现在Desktop建立好。\n\n打包到桌面本地资源(包括图片)：\nreact-native bundle --platform ios --entry-file index.ios.js --bundle-output ./ios/main.jsbundle --dev false\n\n查看更新状态：\ncode-push deployment ls GitFeed-iOS\n\n发布更新：\ncode-push release GitFeed-iOS ~/Desktop/release 1.0.0 -d Production\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiekw2010%2Freact-native-gitfeed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiekw2010%2Freact-native-gitfeed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiekw2010%2Freact-native-gitfeed/lists"}