{"id":21524208,"url":"https://github.com/gxsshallot/react-native-general-actionsheet","last_synced_at":"2026-01-12T07:53:35.346Z","repository":{"id":57105351,"uuid":"158320406","full_name":"gxsshallot/react-native-general-actionsheet","owner":"gxsshallot","description":"ActionSheet api on iOS and Android same as ActionSheetIOS.","archived":false,"fork":false,"pushed_at":"2019-07-10T05:13:54.000Z","size":330,"stargazers_count":23,"open_issues_count":3,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-03T11:57:24.052Z","etag":null,"topics":["actionsheet","react-native"],"latest_commit_sha":null,"homepage":"","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/gxsshallot.png","metadata":{"files":{"readme":"README.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-11-20T02:38:24.000Z","updated_at":"2021-09-23T10:08:34.000Z","dependencies_parsed_at":"2022-08-20T23:50:09.391Z","dependency_job_id":null,"html_url":"https://github.com/gxsshallot/react-native-general-actionsheet","commit_stats":null,"previous_names":["gaoxiaosong/react-native-general-actionsheet"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxsshallot%2Freact-native-general-actionsheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxsshallot%2Freact-native-general-actionsheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxsshallot%2Freact-native-general-actionsheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxsshallot%2Freact-native-general-actionsheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gxsshallot","download_url":"https://codeload.github.com/gxsshallot/react-native-general-actionsheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gxsshallot%2Freact-native-general-actionsheet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258485648,"owners_count":22708954,"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":["actionsheet","react-native"],"created_at":"2024-11-24T01:21:38.645Z","updated_at":"2026-01-12T07:53:35.293Z","avatar_url":"https://github.com/gxsshallot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-general-actionsheet\n\n[![npm version](https://img.shields.io/npm/v/react-native-general-actionsheet.svg?style=flat)](https://www.npmjs.com/package/react-native-general-actionsheet)\n[![Build Status](https://travis-ci.org/gaoxiaosong/react-native-general-actionsheet.svg?branch=master)](https://travis-ci.org/gaoxiaosong/react-native-general-actionsheet)\n\n[中文说明](https://www.jianshu.com/p/2377cca9a58c)\n\nThis is a general ActionSheet api. You can use [ActionSheetIOS](https://facebook.github.io/react-native/docs/actionsheetios) in iOS and use a custom view in Android. Or you can use custom view in both iOS and Android.\n\nIt only support `ActionSheet.showActionSheetWithOptions` now.\n\n## ScreenShots\n\n### Portrait\n\n\u003cp float=\"left\"\u003e\n\n\u003cimg src=\"/resource/iOS-1-P.png\" height=\"400px\"\u003e\n\n\u003cimg src=\"/resource/iOS-2-P.png\" height=\"400px\"\u003e\n\n\u003cimg src=\"/resource/Android-1-P.jpeg\" height=\"400px\"\u003e\n\n\u003cimg src=\"/resource/Android-2-P.jpeg\" height=\"400px\"\u003e\n\n\u003c/p\u003e\n\n### Landscape\n\n\u003cp float=\"left\"\u003e\n\n\u003cimg src=\"/resource/iOS-1-L.png\" width=\"45%\"\u003e\n\n\u003cimg src=\"/resource/iOS-2-L.png\" width=\"45%\"\u003e\n\n\u003c/p\u003e\n\n\u003cp float=\"left\"\u003e\n\n\u003cimg src=\"/resource/Android-1-L.jpeg\" width=\"45%\"\u003e\n\n\u003cimg src=\"/resource/Android-2-L.jpeg\" width=\"45%\"\u003e\n\n\u003c/p\u003e\n\n## Install\n\nInstall by Yarn:\n\n```shell\nyarn add react-native-general-actionsheet\n```\n\nInstall by NPM:\n\n```shell\nnpm install --save react-native-general-actionsheet\n```\n\n## Usage\n\nUse the module in file:\n\n```javascript\nimport ActionSheet from 'react-native-general-actionsheet';\n\nActionSheet.showActionSheetWithOptions(options, callback);\n```\n\nParameters `options` and `callback` is same as [ActionSheetIOS](https://facebook.github.io/react-native/docs/actionsheetios).\n\n## Use `ActionSheetIOS`\n\nYou can change using `ActionSheetIOS` or not globally:\n\n```javascript\nimport ActionSheet from 'react-native-general-actionsheet';\n\nActionSheet.useActionSheetIOS = true/false;\n```\n\n## Customize Style\n\nYou can change style of container globally.\n\n```javascript\nimport ActionSheet from 'react-native-general-actionsheet';\n\nActionSheet.Container.defaultProps.xxx = yyy;\n```\n\nIt supports following properties:\n\n| Name | Type | Description |\n| :-: | :-: | :- |\n| backgroundColor | string | Background color of whole view |\n| contentBackgroundColor | string | Background color of content view |\n| separatorColor | string | Separator line color |\n| fontSize | number | Button text font size |\n| color | string | Button text color |\n| titleStyle | object | Style of title text |\n| messageStyle | object | Style of message text |\n| destructiveButtonStyle | object | Style of destructive button |\n| cancelButtonStyle | object | Style of cancel button |\n| touchableUnderlayColor | string | Underlay color of button touch action |\n| supportedOrientations | array | Supported orientations for iOS |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxsshallot%2Freact-native-general-actionsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgxsshallot%2Freact-native-general-actionsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgxsshallot%2Freact-native-general-actionsheet/lists"}