{"_id":"@dachongziy/react-native-general-actionsheet","_rev":"2-103eed777eaac7c425b072f3c955577f","name":"@dachongziy/react-native-general-actionsheet","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@dachongziy/react-native-general-actionsheet","version":"1.0.0","private":false,"description":"ActionSheet api on iOS and Android same as ActionSheetIOS.","main":"index.js","scripts":{"test":"eslint . --ext .js"},"repository":{"type":"git","url":"git+https://github.com/gaoxiaosong/react-native-general-actionsheet.git"},"keywords":["React Native","ActionSheet"],"author":{"name":"Xiaosong Gao"},"license":"MIT","bugs":{"url":"https://github.com/gaoxiaosong/react-native-general-actionsheet/issues","email":"gaoxiaosong06@gmail.com"},"homepage":"https://github.com/gaoxiaosong/react-native-general-actionsheet#readme","dependencies":{"react-native-safe-area-utility":"^1.0.0","react-native-root-siblings":"^4.1.0"},"devDependencies":{"eslint-plugin-automatic":"latest","react":"latest"},"gitHead":"5b57220dfe97fa4c59ec5edf70e493b65bc50ddb","_id":"@dachongziy/react-native-general-actionsheet@1.0.0","_nodeVersion":"14.4.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-5ACMK9DpJNtJ6TFSbTFGj0WHvPY/h7XNDhdG0nRwF563VwCmIOxhb66u7n15F/whbKecAk30sKbjWM2tOm/dtQ==","shasum":"2f7d022c4f19ecd245160d70b3ed06fb0e0a1094","tarball":"https://registry.npmjs.org/@dachongziy/react-native-general-actionsheet/-/react-native-general-actionsheet-1.0.0.tgz","fileCount":6,"unpackedSize":14843,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgXdWBCRA9TVsSAnZWagAAnsAP/3u9/Tp6uWHIsq4OFnBS\neVwPnafPN8EAiEFiIjDFfp+VQrOCR6wyg0ITxegZNHAlfJ6VTkdA+W7FklfI\nMfzO3F7SV8jSn2C8KwaI6ueZl/qJ/YTzw4avOtnCwPXm8dGe+JMADwJjxCKY\nGQ6372g4jL8PuZib/EtekYSsvyUrIEe1iYULbgCeeJXGQtlhXmZQgKNexBQg\nbRN9q+ADc5/Lbf7zQn4Ph2dOyFATXhlN/ToVNtzQF/8iFwx5809FkV+sU3pk\nY5Iy3guuzuKmVpZtud5F8vEPXJ6+SCt2/TIE8KstU28y1R/5hK4wlUN/gil2\nuDEDwmgfQh1UwtpFJJ+q/H34ViyRljJDzu583qAgfRyD80fg5UpqjkG4MgmJ\n2KOjyul6sOdHKpg34UYLPNbqQ+fzNB5YudIzSyvymECbgfk766WyFiVpxy9Y\nwHDV5+PVu5C61dWg37kd53QBrUFHOoyqHfsVs3pM6l+rJEt0DIyT3zLUemWW\nOApLthlzjhWw5QpLKb7G7kBaWf02onPyJYRjUGQp56MrQaJW19yPdU1UXXTB\nP+ueit7A8JS3bm6Oa2ZtLdS7s5AMFuiN708d0D36h9Bd4fWHvdwIyx9VezkK\nwkLHIehSEYwN3zSFMoh5scxKfk6VuVfme0fEk0ECLJ+7CjOGpyULqANqVbXk\n/XpM\r\n=v2gZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH3/iaYTsIIeBkNR5zGS5Emzo0CPeC5STs8vIbLDWMbJAiBVuej42XEWDEKARDgQzXKONyux914yfNPCWYAG3lmfWg=="}]},"_npmUser":{"name":"dachongziy","email":"903107705@qq.com"},"directories":{},"maintainers":[{"name":"dachongziy","email":"903107705@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-general-actionsheet_1.0.0_1616762240793_0.7578870691114417"},"_hasShrinkwrap":false},"1.0.1":{"name":"@dachongziy/react-native-general-actionsheet","version":"1.0.1","private":false,"description":"ActionSheet api on iOS and Android same as ActionSheetIOS.","main":"index.js","scripts":{"test":"eslint . --ext .js"},"repository":{"type":"git","url":"git+https://github.com/gaoxiaosong/react-native-general-actionsheet.git"},"keywords":["React Native","ActionSheet"],"author":{"name":"Xiaosong Gao"},"license":"MIT","bugs":{"url":"https://github.com/gaoxiaosong/react-native-general-actionsheet/issues","email":"gaoxiaosong06@gmail.com"},"homepage":"https://github.com/gaoxiaosong/react-native-general-actionsheet#readme","dependencies":{"react-native-safe-area-utility":"^1.0.0","react-native-root-siblings":"^4.1.0"},"devDependencies":{"eslint-plugin-automatic":"latest","react":"latest"},"gitHead":"5b57220dfe97fa4c59ec5edf70e493b65bc50ddb","_id":"@dachongziy/react-native-general-actionsheet@1.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mQn6ietOsq/JDGz5rEV2JZulHq7fRjiOqTyNTOC0kSZnmtim4HBY+DG1BtKbU/VaJxyjqTheTPoWD2FBrk62NQ==","shasum":"fa506525b7337e892ca42f1acdab68b987b4d965","tarball":"https://registry.npmjs.org/@dachongziy/react-native-general-actionsheet/-/react-native-general-actionsheet-1.0.1.tgz","fileCount":10,"unpackedSize":16039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg+iNjCRA9TVsSAnZWagAA9hUQAIBHYJYTyflIIw2Dmbvg\nsh4S/FxJUYQiunH2T+P0W9JR+fh7Qc+E8vKl3NzIGEpowxLG/hMRroCBa75g\nMGQKkEbIOkv7JS9tphKXjWG1VIsSmuH5Thi32U3ClP03O2U3S8ozvbGC9aGW\nkpK/ATOk+V7q2k39+eBKuTMhjLFXR6uD4nUKTBxfD4sD5RONm+JhoCiLPPRP\nx1AlOH55zHZrHIhk9zR1UDYadat8b+0ki7i1tVP8h6LI0+T9q9DOTSl+S8Gn\nQgv0pjeQxyaOzsan8RONTkW/wOJUz+fR6Hg0SYsSakfs4rcv1euU4/SBMSYw\nVchncSkqs56JeanPtuxX5UfFqYnpgl+8fhVSeZy57jEfGFZZOf5hfxJZMqOt\ns1f56cccXY/9Lbu3vCV7m4HdSlHPDe7eh5ikQ5M0exEKyPyspSc9zNELLDxt\ntYqTGXnkBtR1BHWpnZ4F7W5iXDo7F3Byq1aNac4IwrS/dAWkPcmap8X2Y/nD\nonin9CyimaWM84MPMbkhebTJ4I1q1WC6NI15uVJwHD8et8EhLXdTzwV2GBsj\noSZ/cIFKEvjL5Z+wL2hQvZWdpzCyZSlCYkQ1NPS2oHnW00AC+gv6V1TVhd7r\nISFVzDa2Nmyxs6G7CRKUyuMSxsVWlTAe8tLF9m7y1DkBAeQONoHkPiu7BIEc\nfisG\r\n=gVSu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICjN96ffJ8yX2L0+I0eoI+TUv7s0/qPGG4j8yQRfqEieAiEA6nwu8JqmMFVhEaQNtm+DzC/5lQXbBWW5smKa9hrNfkg="}]},"_npmUser":{"name":"dachongziy","email":"903107705@qq.com"},"directories":{},"maintainers":[{"name":"dachongziy","email":"903107705@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-general-actionsheet_1.0.1_1627005795014_0.7052795138196275"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-26T12:37:20.750Z","1.0.0":"2021-03-26T12:37:20.938Z","modified":"2022-04-05T02:32:17.003Z","1.0.1":"2021-07-23T02:03:15.182Z"},"maintainers":[{"name":"dachongziy","email":"903107705@qq.com"}],"description":"ActionSheet api on iOS and Android same as ActionSheetIOS.","homepage":"https://github.com/gaoxiaosong/react-native-general-actionsheet#readme","keywords":["React Native","ActionSheet"],"repository":{"type":"git","url":"git+https://github.com/gaoxiaosong/react-native-general-actionsheet.git"},"author":{"name":"Xiaosong Gao"},"bugs":{"url":"https://github.com/gaoxiaosong/react-native-general-actionsheet/issues","email":"gaoxiaosong06@gmail.com"},"license":"MIT","readme":"# react-native-general-actionsheet\r\n\r\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)\r\n[![Build Status](https://travis-ci.org/gaoxiaosong/react-native-general-actionsheet.svg?branch=master)](https://travis-ci.org/gaoxiaosong/react-native-general-actionsheet)\r\n\r\n[中文说明](https://www.jianshu.com/p/2377cca9a58c)\r\n\r\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.\r\n\r\nIt only support `ActionSheet.showActionSheetWithOptions` now.\r\n\r\n## ScreenShots\r\n\r\n### Portrait\r\n\r\n<p float=\"left\">\r\n\r\n<img src=\"/resource/iOS-1-P.png\" height=\"400px\">\r\n\r\n<img src=\"/resource/iOS-2-P.png\" height=\"400px\">\r\n\r\n<img src=\"/resource/Android-1-P.jpeg\" height=\"400px\">\r\n\r\n<img src=\"/resource/Android-2-P.jpeg\" height=\"400px\">\r\n\r\n</p>\r\n\r\n### Landscape\r\n\r\n<p float=\"left\">\r\n\r\n<img src=\"/resource/iOS-1-L.png\" width=\"45%\">\r\n\r\n<img src=\"/resource/iOS-2-L.png\" width=\"45%\">\r\n\r\n</p>\r\n\r\n<p float=\"left\">\r\n\r\n<img src=\"/resource/Android-1-L.jpeg\" width=\"45%\">\r\n\r\n<img src=\"/resource/Android-2-L.jpeg\" width=\"45%\">\r\n\r\n</p>\r\n\r\n## Install\r\n\r\nInstall by Yarn:\r\n\r\n```shell\r\nyarn add react-native-general-actionsheet\r\n```\r\n\r\nInstall by NPM:\r\n\r\n```shell\r\nnpm install --save react-native-general-actionsheet\r\n```\r\n\r\n## Usage\r\n\r\nUse the module in file:\r\n\r\n```javascript\r\nimport ActionSheet from 'react-native-general-actionsheet';\r\n\r\nActionSheet.showActionSheetWithOptions(options, callback);\r\n```\r\n\r\nParameters `options` and `callback` is same as [ActionSheetIOS](https://facebook.github.io/react-native/docs/actionsheetios).\r\n\r\n## Use `ActionSheetIOS`\r\n\r\nYou can change using `ActionSheetIOS` or not globally:\r\n\r\n```javascript\r\nimport ActionSheet from 'react-native-general-actionsheet';\r\n\r\nActionSheet.useActionSheetIOS = true/false;\r\n```\r\n\r\n## Customize Style\r\n\r\nYou can change style of container globally.\r\n\r\n```javascript\r\nimport ActionSheet from 'react-native-general-actionsheet';\r\n\r\nActionSheet.Container.defaultProps.xxx = yyy;\r\n```\r\n\r\nIt supports following properties:\r\n\r\n| Name | Type | Description |\r\n| :-: | :-: | :- |\r\n| backgroundColor | string | Background color of whole view |\r\n| contentBackgroundColor | string | Background color of content view |\r\n| separatorColor | string | Separator line color |\r\n| fontSize | number | Button text font size |\r\n| color | string | Button text color |\r\n| titleStyle | object | Style of title text |\r\n| messageStyle | object | Style of message text |\r\n| destructiveButtonStyle | object | Style of destructive button |\r\n| cancelButtonStyle | object | Style of cancel button |\r\n| touchableUnderlayColor | string | Underlay color of button touch action |\r\n| supportedOrientations | array | Supported orientations for iOS |\r\n","readmeFilename":"README.md"}