{"id":24194908,"url":"https://github.com/newraina/react-actionsheet","last_synced_at":"2025-07-19T23:06:47.479Z","repository":{"id":47422142,"uuid":"73888121","full_name":"newraina/react-actionsheet","owner":"newraina","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-09T17:53:22.000Z","size":1345,"stargazers_count":7,"open_issues_count":12,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-09T08:12:26.662Z","etag":null,"topics":[],"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/newraina.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}},"created_at":"2016-11-16T05:44:39.000Z","updated_at":"2021-01-07T08:12:42.000Z","dependencies_parsed_at":"2023-01-25T22:46:39.575Z","dependency_job_id":null,"html_url":"https://github.com/newraina/react-actionsheet","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newraina%2Freact-actionsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newraina%2Freact-actionsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newraina%2Freact-actionsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/newraina%2Freact-actionsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/newraina","download_url":"https://codeload.github.com/newraina/react-actionsheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233791248,"owners_count":18730815,"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":"2025-01-13T18:40:09.691Z","updated_at":"2025-01-13T18:40:12.468Z","avatar_url":"https://github.com/newraina.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# react-actionsheet\n\n# Installation\n\n```\nnpm i react-actionsheet --save\n```\n\n# Demo\n\n![example gif](./example/example.gif)\n\n```javascript\nclass App extends Component {\n\n  state = {\n    show: false\n  }\n\n  onClick = () =\u003e {\n    const { show } = this.state\n    this.setState({show: !show})\n  }\n\n  onRequestClose = () =\u003e {\n    this.onClick()\n  }\n\n  render() {\n    const { show } = this.state\n\n    const tip = show ? '隐藏' : '显示'\n    const menus = [{content: '点我'}, {content: '不要点我'}]\n\n    return (\n      \u003cdiv\u003e\n        \u003cbutton onClick={this.onClick}\u003e{tip}\u003c/button\u003e\n\n        \u003cActionsheet show={show} menus={menus} onRequestClose={this.onRequestClose} /\u003e\n      \u003c/div\u003e\n    )\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewraina%2Freact-actionsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewraina%2Freact-actionsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewraina%2Freact-actionsheet/lists"}