{"id":22165277,"url":"https://github.com/doochik/simpleactionsheetios","last_synced_at":"2025-03-24T16:13:36.544Z","repository":{"id":57340067,"uuid":"99663070","full_name":"doochik/SimpleActionSheetIOS","owner":"doochik","description":"Handy wrapper for react-native ActionSheetIOS","archived":false,"fork":false,"pushed_at":"2017-08-08T09:17:21.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-06T15:51:09.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/doochik.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":"2017-08-08T07:22:38.000Z","updated_at":"2017-08-08T09:18:00.000Z","dependencies_parsed_at":"2022-08-26T04:31:46.111Z","dependency_job_id":null,"html_url":"https://github.com/doochik/SimpleActionSheetIOS","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2FSimpleActionSheetIOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2FSimpleActionSheetIOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2FSimpleActionSheetIOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doochik%2FSimpleActionSheetIOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doochik","download_url":"https://codeload.github.com/doochik/SimpleActionSheetIOS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245304873,"owners_count":20593626,"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":"2024-12-02T05:14:20.253Z","updated_at":"2025-03-24T16:13:36.513Z","avatar_url":"https://github.com/doochik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![NPM version](https://badge.fury.io/js/react-native-simple-action-sheet-ios.svg)](http://badge.fury.io/js/react-native-simple-action-sheet-ios)\n\n# SimpleActionSheetIOS\nHandy wrapper for react-native ActionSheetIOS.\n\n`ActionSheetIOS.showActionSheetWithOptions` has inconvenient API:\n```\nActionSheetIOS.showActionSheetWithOptions({\n    options: [\n        'button1',\n        'button2',\n        'button3',\n    ],\n    cancelButtonIndex: 2,\n    destructiveButtonIndex: 0\n}, (buttonIndex) =\u003e {\n    if (buttonIndex === 0) {\n        // do something...    \n    } else if (buttonIndex === 1) {\n        // do something...\n    }\n})\n```\n\nSimpleActionSheetIOS simplifies this API\n```\nimport simpleActionSheetIOS from 'react-native-simple-action-sheet-ios';\n\nsimpleActionSheetIOS({\n    options: [\n        { title: 'button1', callback: myFn1, isDestructive: true },\n        { title: 'button2', callback: myFn2 },\n        { title: 'button3', callback: myFn3, isCancel: true },\n    ]\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoochik%2Fsimpleactionsheetios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoochik%2Fsimpleactionsheetios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoochik%2Fsimpleactionsheetios/lists"}