{"_id":"@2hats/react-native-android-action-sheet","_rev":"6-0e3f5a4a9487e0c1180b7bf64f9f9f0d","name":"@2hats/react-native-android-action-sheet","description":"ActionSheet on Android for React Native","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.1":{"name":"@2hats/react-native-android-action-sheet","version":"0.0.1","description":"ActionSheet on Android for React Native","main":"index.js","author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"license":"SEE LICENSE IN LICENSE","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"gitHead":"9e239802839f7e2cddae526969a5fe94f9c3fad2","_id":"@2hats/react-native-android-action-sheet@0.0.1","_npmVersion":"5.0.4","_nodeVersion":"8.1.2","_npmUser":{"name":"2hats","email":"piaojingtai@gmail.com"},"dist":{"integrity":"sha512-d2EK95PJGm6PPbRtp8HtK7nmwfIEhDhQyyUCvDJsbn+LVy+goRBXaZEeRfNPoq4/ZkzP//bRr3n9WcPUGBNtoQ==","shasum":"21db9faae179f889a546ead5722e115d1ddc4d04","tarball":"https://registry.npmjs.org/@2hats/react-native-android-action-sheet/-/react-native-android-action-sheet-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTiAwMM/VtS3qOziKoVOy9TyVckNg9yJe0vlGyhxXlzwIhAOTXZ5H1B635bj0kxowPp8KV8SQZ5ep5Obiki4ESV0MX"}]},"maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-android-action-sheet-0.0.1.tgz_1499731720025_0.9976348632480949"}},"0.0.2":{"name":"@2hats/react-native-android-action-sheet","version":"0.0.2","description":"ActionSheet on Android for React Native","main":"index.js","author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"license":"SEE LICENSE IN LICENSE","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"gitHead":"3e7d4c44e298c972d3cefccabdae8d5506f6fbee","_id":"@2hats/react-native-android-action-sheet@0.0.2","_npmVersion":"5.0.4","_nodeVersion":"7.5.0","_npmUser":{"name":"2hats","email":"piaojingtai@gmail.com"},"dist":{"integrity":"sha512-DxrDzvmylrWdC+VGd/tvPKPM0tHkTum9Z+mBJrWdecqx2ITiHrFf+3+9K73CwHQH40ny41v8txzOZwCyg33A3Q==","shasum":"d25762d7b791fe1fb7fbc41908100349c1747015","tarball":"https://registry.npmjs.org/@2hats/react-native-android-action-sheet/-/react-native-android-action-sheet-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDra3InrczPVNJay/uVSmbg4yPZDmR6SlPDfoZ3AQt7WAIhAOmo0YgNtcfuDEO1/h9cr/MN1013by+5N5ZvSiqzp38h"}]},"maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-android-action-sheet-0.0.2.tgz_1500269021935_0.586112750461325"}},"0.0.3":{"name":"@2hats/react-native-android-action-sheet","version":"0.0.3","description":"ActionSheet on Android for React Native","main":"index.js","author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"license":"SEE LICENSE IN LICENSE","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"gitHead":"3f78116f8d416fa06a7777aa94a119b321048aff","_id":"@2hats/react-native-android-action-sheet@0.0.3","_npmVersion":"5.0.4","_nodeVersion":"7.5.0","_npmUser":{"name":"2hats","email":"piaojingtai@gmail.com"},"dist":{"integrity":"sha512-Cus5e+bh+5qTLAlp9xoQ7k2OQ2hXqQHxHuE5sc2a3wXwaxKe5c4PbqZku9U+pbTjHf1Hw2H/ELkHLHxFfc8xMg==","shasum":"9db2bed552d44af5415955395a5b3379b4fb5109","tarball":"https://registry.npmjs.org/@2hats/react-native-android-action-sheet/-/react-native-android-action-sheet-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqwJbIcOBnkkGzNhNYlvcw9XnupUkynXYSyMp9A12dUgIgHF1+G8LGajUovkcYjzmzt/99LRrxnpo8CGmcDax1LIM="}]},"maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-android-action-sheet-0.0.3.tgz_1500270891500_0.8446302991360426"}},"0.0.4":{"name":"@2hats/react-native-android-action-sheet","version":"0.0.4","description":"ActionSheet on Android for React Native","main":"index.js","author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"license":"SEE LICENSE IN LICENSE","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"gitHead":"5f56decfa4991c1da2ef2df6a0fa61a5e95c9d15","_id":"@2hats/react-native-android-action-sheet@0.0.4","_npmVersion":"5.0.4","_nodeVersion":"7.5.0","_npmUser":{"name":"2hats","email":"piaojingtai@gmail.com"},"dist":{"integrity":"sha512-9IUIgyoE7afeMgdX/edD32/Q3RCB3h5+tkzqKEeJKKhsp7lVkPtsuXSKAYAMjs9qvoV7fAckpnE8/pw+KOajYw==","shasum":"cfdfe3ba48c3a5f13bb1f68809e5a53447c71458","tarball":"https://registry.npmjs.org/@2hats/react-native-android-action-sheet/-/react-native-android-action-sheet-0.0.4.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9rO9g7rwcgXfbb7DFNFUis4oPU+FxvrR1y3qBqF6lUAiEA5hccnpxuq25zq4Dj0NCvifkYruRVeEQTnzTj1PpXQaA="}]},"maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-android-action-sheet-0.0.4.tgz_1500278947051_0.6133840482216328"}},"0.0.5":{"name":"@2hats/react-native-android-action-sheet","version":"0.0.5","description":"ActionSheet on Android for React Native","main":"index.js","author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"license":"SEE LICENSE IN LICENSE","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"gitHead":"1c29a9b038808db31e29c08eaef66987e9aac195","_id":"@2hats/react-native-android-action-sheet@0.0.5","_npmVersion":"5.0.4","_nodeVersion":"7.5.0","_npmUser":{"name":"2hats","email":"piaojingtai@gmail.com"},"dist":{"integrity":"sha512-KHneDChoAAJPcN+APMKtKx4K5Vukr+XUXe2q3eJvK8ISu/lWyYr0zxkTbeIdJ02MXRjtKOVKwPIgw8OWZTag2w==","shasum":"619b1ae2c7c14ce32c8edc5020a65fd092e57c4c","tarball":"https://registry.npmjs.org/@2hats/react-native-android-action-sheet/-/react-native-android-action-sheet-0.0.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEWeX7tFYC10gJQbzkrB9yiyrLwK4V2Yl+L2QeQsIMQfAiEAjignO+9EZgQNYm1m7cbaqgsfKUX9goHiaggmd27Bc7o="}]},"maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-android-action-sheet-0.0.5.tgz_1500338000761_0.7121716528199613"}},"0.0.6":{"name":"@2hats/react-native-android-action-sheet","version":"0.0.6","description":"ActionSheet on Android for React Native","main":"index.js","author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"license":"SEE LICENSE IN LICENSE","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"gitHead":"8a0c7a194a3de4fdcec164938e569d14f17b6fc5","_id":"@2hats/react-native-android-action-sheet@0.0.6","_npmVersion":"5.3.0","_nodeVersion":"7.5.0","_npmUser":{"name":"2hats","email":"piaojingtai@gmail.com"},"dist":{"integrity":"sha512-X++NoabtKrftschlCPE2fBSNeSi1bdUS2YoMPluyf25/8uu8t7Jpr/wxD5sXNojfKq4XlJwfjPQYc7mQTi5c3A==","shasum":"7447a8b483eaab76e18e6a56bfb97f74f879c973","tarball":"https://registry.npmjs.org/@2hats/react-native-android-action-sheet/-/react-native-android-action-sheet-0.0.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFhnT6q1BE4x1IBWdiSrkiX3GltoW1nYY7xDjV7J3QphAiEAkev/2pAiK7aNdxU0PFqrDrqcS9Kx2OiOHzN2TIpSfuY="}]},"maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-native-android-action-sheet-0.0.6.tgz_1502932729561_0.8788462446536869"}}},"readme":"# react-native-android-action-sheet\nreact-native-android-action-sheet is a JavaScript library for [React Native](https://facebook.github.io/react-native/),\nit implements AcionSheet for Android relys on [AndroidActionSheet](https://github.com/zongjingyao/AndroidActionSheet).\n\n## Installing react-native-android-action-sheet\n```bash\nnpm install react-native-android-action-sheet --save\n```\n\n## Android\n* `android/setting.gradle`\n\n```gradle\n...\ninclude ':react-native-android-action-sheet'\nproject(':react-native-android-action-sheet').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-android-action-sheet/android')\n```\n\n* `android/app/build.gradle`\n\n```gradle\ndependencies {\n    ...\n    compile project(\":react-native-android-action-sheet\")\n}\n```\n\n### In react-native < 0.29.0\n* Register Module (in MainActivity.java)\n\n```java\nimport cn.zjy.actionsheet.rn.ActionSheetPackage; \n\npublic class MainActivity extends ReactActivity {\n    ......\n    @Override\n    protected List<ReactPackage> getPackages() {\n        return Arrays.asList(\n            new MainReactPackage(),\n            new ActionSheetPackage()\n        );\n    }\n    ......\n}\n```\n\n### In react-native >= 0.29.0\n* Register Module (in MainApplication.java)\n\n```java\nimport cn.zjy.actionsheet.rn.ActionSheetPackage; \n\npublic class MainApplication extends Application implements ReactApplication {\n    ......\n    @Override\n    protected List<ReactPackage> getPackages() {\n        return Arrays.asList(\n            new MainReactPackage(),\n            new ActionSheetPackage()\n        );\n    }\n    ......\n}\n```\n\n## Usage\n\n```js\nimport ActionSheet from 'react-native-android-action-sheet';\n\n//both on iOS and Android\nshowActionSheetWithOptions() {\n    let btns = [\n      'Option 0',\n      'Option 1',\n      'Option 2',\n      'Delete',\n      'Cancel',\n    ];\n    let params = {\n      'options': btns,\n      'cancelButtonIndex': 4,\n      'destructiveButtonIndex': 3,\n      'title': 'ActionSheet'\n    };\n    ActionSheet.showActionSheetWithOptions(params, (index) => {\n      console.log('showActionSheetWithOptions', index);\n    });\n}\n\n//Android only\nshowActionSheetWithCustomOptions() {\n    let title = {\n      'title': 'CustomActionSheet',\n      'titleColor': '#0000ff'\n    };\n    let cancelBtn = {\n      'btnTitle': 'Cancel',\n      'btnTitleColor': '#00ffff'\n    };\n    let optionBtns = [\n      { 'btnTitle': 'Option 0', 'btnTitleColor': '#6aa84f' },\n      { 'btnTitle': 'Option 1', 'btnTitleColor': '#000000' },\n      { 'btnTitle': 'Option 2', 'btnTitleColor': '#7f6000' },\n      { 'btnTitle': 'Delete', 'btnTitleColor': '#ff0000' }\n    ];\n    let params = {\n      'title': title,\n      'optionBtns': optionBtns,\n      'cancelBtn': cancelBtn\n    }\n    ActionSheet.showActionSheetWithCustomOptions(params, (index) => {\n      console.log('showActionSheetWithCustomOptions', index);\n    });\n}\n\n```\n\n## Screenshots\n### showActionSheetWithOptions\n![showActionSheetWithOptions](https://raw.githubusercontent.com/zongjingyao/react-native-android-action-sheet/master/screenshots/showActionSheetWithOptions.png)\n\n### showActionSheetWithCustomOptions\n![showActionSheetWithCustomOptions](https://raw.githubusercontent.com/zongjingyao/react-native-android-action-sheet/master/screenshots/showActionSheetWithCustomOptions.png)","maintainers":[{"name":"2hats","email":"piaojingtai@gmail.com"}],"time":{"modified":"2022-04-04T10:42:17.466Z","created":"2017-07-11T00:08:40.249Z","0.0.1":"2017-07-11T00:08:40.249Z","0.0.2":"2017-07-17T05:23:42.386Z","0.0.3":"2017-07-17T05:54:51.760Z","0.0.4":"2017-07-17T08:09:07.519Z","0.0.5":"2017-07-18T00:33:20.855Z","0.0.6":"2017-08-17T01:18:49.726Z"},"homepage":"https://github.com/zongjingyao/react-native-android-action-sheet","keywords":["react","android","react native","actionsheet","react native","react native actionsheet","react native action sheet"],"repository":{"type":"git","url":"git+https://github.com/zongjingyao/react-native-android-action-sheet.git"},"author":{"name":"Jingyao Zong","email":"zongjingyao@gmail.com","url":"https://github.com/zongjingyao"},"bugs":{"url":"https://github.com/zongjingyao/react-native-android-action-sheet/issues"},"license":"SEE LICENSE IN LICENSE","readmeFilename":"README.md"}