{"id":17700729,"url":"https://github.com/wrathchaos/react-native-permissions-modal","last_synced_at":"2025-08-10T11:12:32.250Z","repository":{"id":38837131,"uuid":"241621561","full_name":"WrathChaos/react-native-permissions-modal","owner":"WrathChaos","description":"Awesome \u0026 Fully Customizable Permissions Modal for React Native","archived":false,"fork":false,"pushed_at":"2024-09-12T02:04:42.000Z","size":2774,"stargazers_count":34,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-09T08:36:46.332Z","etag":null,"topics":["android","apple","design","freakycoder","front-end","google","ios","kuray","react","react-native","reactjs","software"],"latest_commit_sha":null,"homepage":"https://freakycoder.com","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/WrathChaos.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-19T12:55:13.000Z","updated_at":"2024-05-17T14:14:12.000Z","dependencies_parsed_at":"2024-05-17T15:35:39.344Z","dependency_job_id":"7dfc3bd5-97ac-4b50-a787-80b84c18b479","html_url":"https://github.com/WrathChaos/react-native-permissions-modal","commit_stats":{"total_commits":38,"total_committers":3,"mean_commits":"12.666666666666666","dds":0.3157894736842105,"last_synced_commit":"6b0843782c1ae0f5777340d4db7b893ad54be749"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/WrathChaos/react-native-permissions-modal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-permissions-modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-permissions-modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-permissions-modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-permissions-modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WrathChaos","download_url":"https://codeload.github.com/WrathChaos/react-native-permissions-modal/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WrathChaos%2Freact-native-permissions-modal/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713884,"owners_count":24463244,"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","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","apple","design","freakycoder","front-end","google","ios","kuray","react","react-native","reactjs","software"],"created_at":"2024-10-24T17:42:55.832Z","updated_at":"2025-08-10T11:12:32.228Z","avatar_url":"https://github.com/WrathChaos.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg alt=\"React Native Permissions Modal\" src=\"assets/logo.png\" width=\"1050\"/\u003e\n\n[![Battle Tested ✅](https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge)](https://github.com/WrathChaos/react-native-permissions-modal)\n\n[![Awesome \u0026 Fully Customizable Permissions Modal for React Native](https://img.shields.io/badge/-Awesome%20%26%20Fully%20Customizable%20Permissions%20Modal%20for%20React%20Native-lightgrey?style=for-the-badge)](https://github.com/WrathChaos/react-native-permissions-modal)\n\n[![npm version](https://img.shields.io/npm/v/react-native-permissions-modal.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-permissions-modal)\n[![npm](https://img.shields.io/npm/dt/react-native-permissions-modal.svg?style=for-the-badge)](https://www.npmjs.com/package/react-native-permissions-modal)\n![Platform - Android and iOS](https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://opensource.org/licenses/MIT)\n[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge)](https://github.com/prettier/prettier)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"React Native Permissions Modal\"\n        src=\"assets/Screenshots/example.gif\" /\u003e\n  \u003cimg alt=\"React Native Permissions Modal\" height=\"450\"\n        src=\"assets/Screenshots/example.png\" /\u003e\n\u003c/p\u003e\n\n# Installation\n\nAdd the dependency:\n\n```ruby\nnpm i react-native-permissions-modal\n```\n\n## Peer Dependencies\n\n###### IMPORTANT! You need install them\n\n```js\n\"react\": \"\u003e= 16.x.x\",\n\"react-native\": \"\u003e= 0.55.x\",\n\"react-native-gesture-handler\": \"\u003e= 1.6.0\",\n\"react-native-material-ripple\": \"\u003e= 0.9.1\",\n\"react-native-modalize\": \"\u003e= 1.3.7\"\n```\n\n# Usage\n\n## Import\n\n```js\nimport {\n  PermissionModal,\n  PermissionItem\n} from \"react-native-permissions-modal\";\n```\n\n## Usage\n\n```js\n\u003cPermissionModal\n  panGestureEnabled={false}\n  closeOnOverlayTap={false}\n  ref={ref =\u003e (this.permModal = ref)}\n\u003e\n  \u003cPermissionItem /\u003e\n  \u003cPermissionItem\n    title=\"Camera\"\n    iconStatusColor=\"red\"\n    subtitle=\"To access camera features\"\n    source={require(\"./assets/photo.png\")}\n    onPress={() =\u003e alert(\"hello\")}\n  /\u003e\n  \u003cPermissionItem\n    title=\"Internet\"\n    source={require(\"./assets/wifi.png\")}\n    subtitle=\"To access the services, give us the permission\"\n  /\u003e\n\u003c/PermissionModal\u003e\n```\n\n## Open Modal\n\n```js\nthis.permModal.openModal();\n```\n\n## Close Modal\n\n```js\nthis.permModal.closeModal();\n```\n\n# Configuration - Props\n\n## PermissionModal\n\n| Property   |   Type   |   Default   | Description                                             |\n| ---------- | :------: | :---------: | ------------------------------------------------------- |\n| title      |  string  | Permissions | change the title of the modal                           |\n| subtitle   |  string  |   default   | change the subtitle of the modal                        |\n| openModal  | function |   default   | to open the modal                                       |\n| closeModal | function |   default   | to close the modal                                      |\n| gradient   | boolean  |    false    | make the button with a gradient background and a shadow |\n| width      |  number  |     150     | change the button's width                               |\n\n## PermissionItem\n\n| Property                     |   Type    |    Default    | Description                                          |\n| ---------------------------- | :-------: | :-----------: | ---------------------------------------------------- |\n| title                        |  string   |   Location    | change the title of the permission item              |\n| subtitle                     |  string   |    default    | change the subtitle of the permission item           |\n| source                       |   image   | default-image | change the image source of the permission item       |\n| iconComponent                | component |    default    | set your own component instead of imaged icon        |\n| ImageComponent               | component |     Image     | set your own component for Image such as `FastImage` |\n| iconContainerBackgroundColor |   color   |    #f7f7f7    | change icon's background color                       |\n| titleTextStyle               |   style   |    default    | change title's text style                            |\n| subtitleTextStyle            |   style   |    default    | change subtitle's text style                         |\n\n# FAQ\n\n### Android: Modal does not response the touchables :O\n\nCheck out [`react-native-gesture-handler`'s documentation](https://kmagiera.github.io/react-native-gesture-handler/docs/getting-started.html) to set it up.\n\n## Future Plans\n\n- [x] ~~LICENSE~~\n- [ ] Write an article about the lib on Medium\n\n## Credits\n\nThank you for this awesome inspiration [João Angelo](https://dribbble.com/shots/9252130-iFood-Pending-Permissions/attachments/1296281?mode=media)\n\n## Author\n\nFreakyCoder, kurayogun@gmail.com\n\n## License\n\nReact Native Permissions Modal is available under the MIT license. See the LICENSE file for more info.\n\nIcons made by \u003ca href=\"https://www.flaticon.com/authors/prosymbols\" title=\"Prosymbols\"\u003eProsymbols\u003c/a\u003e from \u003ca href=\"https://www.flaticon.com/\" title=\"Flaticon\"\u003e www.flaticon.com\u003c/a\u003e\nIcons made by \u003ca href=\"https://www.flaticon.com/authors/google\" title=\"Google\"\u003eGoogle\u003c/a\u003e from \u003ca href=\"https://www.flaticon.com/\" title=\"Flaticon\"\u003e www.flaticon.com\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrathchaos%2Freact-native-permissions-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwrathchaos%2Freact-native-permissions-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwrathchaos%2Freact-native-permissions-modal/lists"}