{"id":19139911,"url":"https://github.com/arcblock/ocap-react-native-starter","last_synced_at":"2026-03-04T10:32:14.398Z","repository":{"id":40770342,"uuid":"145653897","full_name":"ArcBlock/ocap-react-native-starter","owner":"ArcBlock","description":"OCAP Starter project for react-native with OCAP JS SDK integrated.","archived":false,"fork":false,"pushed_at":"2023-01-26T00:44:12.000Z","size":2459,"stargazers_count":3,"open_issues_count":7,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-06T23:15:39.152Z","etag":null,"topics":["arcblock","hackathon","ocap","react-native","sdk","starter-template"],"latest_commit_sha":null,"homepage":"http://t.cn/Rk0Aonj","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArcBlock.png","metadata":{"files":{"readme":"README.cn.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-22T03:58:58.000Z","updated_at":"2018-09-26T03:28:28.000Z","dependencies_parsed_at":"2023-02-14T12:45:57.051Z","dependency_job_id":null,"html_url":"https://github.com/ArcBlock/ocap-react-native-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArcBlock/ocap-react-native-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Focap-react-native-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Focap-react-native-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Focap-react-native-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Focap-react-native-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArcBlock","download_url":"https://codeload.github.com/ArcBlock/ocap-react-native-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArcBlock%2Focap-react-native-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078308,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["arcblock","hackathon","ocap","react-native","sdk","starter-template"],"created_at":"2024-11-09T07:15:38.263Z","updated_at":"2026-03-04T10:32:14.364Z","avatar_url":"https://github.com/ArcBlock.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocap-react-native-starter\n\n![](https://img.shields.io/badge/powered%20by-arcblock-brightgreen.svg)\n\n\u003e 集成了 [OCAP JS SDK](https://github.com/ArcBlock/ocap-javascript-sdk/tree/master/packages/ocap-js) 的 React-Native 种子项目，使用 `react-native-cli` 初始化，APP 里面提供的界面可以看本文档末尾的截图。\n\n\u003e For English documentation, please checkout [README.md](./README.md)\n\n## 使用方法\n\n```shell\ngit clone https://github.com/ArcBlock/ocap-react-native-starter.git\ncd ocap-react-native-starter\nyarn # npm install\nreact-native run-ios # You can use XCode if you are familiar\n```\n\n## OCAP SDK 代码示例\n\n- SDK 初始化和封装：[src/libs/ocap.js](./src/libs/ocap.js)\n- 基于 SDK 做查询：[src/pages/Query/index.js](./src/pages/Query/index.js)\n- 基于 SDK 做实时数据订阅：[src/pages/Subscription/index.js](./src/pages/Subscription/index.js)\n\n## OCAP SDK 文档\n\n- [SDK 源码和文档首页](https://github.com/ArcBlock/ocap-javascript-sdk/tree/master/packages/ocap-js)\n- [Bitcoin API 列表和响应格式](https://github.com/ArcBlock/ocap-javascript-sdk/blob/master/packages/ocap-js/docs/btc.md)\n- [Ethereum API 列表和响应格式](https://github.com/ArcBlock/ocap-javascript-sdk/blob/master/packages/ocap-js/docs/eth.md)\n\n## OCAP 提供的工具\n\n- [OCAP Playground：快速执行查询、预览结果](https://ocap.arcblock.io)\n- [OCAP Playbook：记录、分享基于区块链的数据研究](https://ocap.arcblock.io)\n\n## 内含的三方库\n\n- 导航库：[react-navigation](https://reactnavigation.org/)\n- 图标库：[react-native-vector-icons](https://github.com/oblador/react-native-vector-icons)\n\n## APP 截图\n\n![](./assets/home.png)\n![](./assets/query.png)\n![](./assets/subscription.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcblock%2Focap-react-native-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farcblock%2Focap-react-native-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farcblock%2Focap-react-native-starter/lists"}