{"id":13637486,"url":"https://github.com/hectahertz/react-native-material-dialog","last_synced_at":"2025-09-01T03:39:05.524Z","repository":{"id":18416296,"uuid":"83084954","full_name":"hectahertz/react-native-material-dialog","owner":"hectahertz","description":"Material design dialogs for React Native 💬","archived":false,"fork":false,"pushed_at":"2022-12-06T15:22:06.000Z","size":4115,"stargazers_count":142,"open_issues_count":40,"forks_count":55,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-07-06T22:39:21.684Z","etag":null,"topics":["dialog","dialogs","material","material-design","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/hectahertz.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-02-24T21:38:52.000Z","updated_at":"2025-02-20T23:01:49.000Z","dependencies_parsed_at":"2023-01-13T22:15:18.160Z","dependency_job_id":null,"html_url":"https://github.com/hectahertz/react-native-material-dialog","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/hectahertz/react-native-material-dialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectahertz%2Freact-native-material-dialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectahertz%2Freact-native-material-dialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectahertz%2Freact-native-material-dialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectahertz%2Freact-native-material-dialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hectahertz","download_url":"https://codeload.github.com/hectahertz/react-native-material-dialog/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hectahertz%2Freact-native-material-dialog/sbom","scorecard":{"id":459376,"data":{"date":"2025-08-11","repo":{"name":"github.com/hectahertz/react-native-material-dialog","commit":"aae7fe20e8f2c0fa6e4db1ba583c86ed89554176"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/28 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 5 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"79 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-cwfw-4gq5-mrqx","Warn: Project is vulnerable to: GHSA-g95f-p29q-9xw4","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3","Warn: Project is vulnerable to: MAL-2023-462","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3","Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g","Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r","Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-4cpg-3vgw-4877","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-rxrc-rgv4-jpvx","Warn: Project is vulnerable to: GHSA-7f53-fmmv-mfjv","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-m6fv-jmcg-4jfg","Warn: Project is vulnerable to: GHSA-cm22-4g7w-348p","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-gff7-g5r8-mg8m","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-662x-fhqg-9p8v","Warn: Project is vulnerable to: GHSA-394c-5j6w-4xmx","Warn: Project is vulnerable to: GHSA-78cj-fxph-m83p","Warn: Project is vulnerable to: GHSA-fhg7-m89q-25r3","Warn: Project is vulnerable to: GHSA-9m6j-fcg5-2442","Warn: Project is vulnerable to: GHSA-hh27-ffr2-f2jc","Warn: Project is vulnerable to: GHSA-rqff-837h-mm52","Warn: Project is vulnerable to: GHSA-8v38-pw62-9cw2","Warn: Project is vulnerable to: GHSA-hgjh-723h-mx2j","Warn: Project is vulnerable to: GHSA-jf5r-8hm2-f872","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q","Warn: Project is vulnerable to: GHSA-h6q6-9hqw-rwfv","Warn: Project is vulnerable to: GHSA-5fg8-2547-mr8q","Warn: Project is vulnerable to: GHSA-crh6-fp67-6883","Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh","Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T10:41:23.247Z","repository_id":18416296,"created_at":"2025-08-19T10:41:23.247Z","updated_at":"2025-08-19T10:41:23.247Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273070115,"owners_count":25040219,"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-09-01T02:00:09.058Z","response_time":120,"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":["dialog","dialogs","material","material-design","react-native"],"created_at":"2024-08-02T00:01:18.246Z","updated_at":"2025-09-01T03:39:05.497Z","avatar_url":"https://github.com/hectahertz.png","language":"JavaScript","funding_links":[],"categories":["React Native"],"sub_categories":["Components React Native"],"readme":"# \u003cimg alt=\"React Native Material Dialog\" src=\"images/logo.png\" width=\"412\"/\u003e\n\n[![npm version](https://img.shields.io/npm/v/react-native-material-dialog.svg)](https://www.npmjs.com/package/react-native-material-dialog)\n[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)\n[![npm downloads](https://img.shields.io/npm/dm/react-native-material-dialog.svg)](https://www.npmjs.com/package/react-native-material-dialog)\n\nMaterial design dialog components for React Native. JavaScript-only, for iOS and\nAndroid.\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"React Native Material Dialog iOS Showcase\" src=\"images/ios.png\" width=\"49.7%\"/\u003e\n\u003cimg alt=\"React Native Material Dialog Android Showcase\" src=\"images/android.png\" width=\"49.7%\"/\u003e\n\u003c/p\u003e\n\n## Getting started\n\n#### Step 1\n\nIf you're not using Expo, install\n[react-native-vector-icons](https://github.com/oblador/react-native-vector-icons#installation)\n\n#### Step 2\n\nInstall react-native-material-dialog\n\n`npm install react-native-material-dialog --save`\n\n## Example\n\n* Run the example app\n  [via Expo](https://exp.host/@hectahertz/react-native-material-dialog-example)\n  or [check the code](example/App.js).\n\n## Included components\n\n* [x] [MaterialDialog](https://github.com/hectahertz/react-native-material-dialog#materialdialog)\n* [x] [SinglePickerMaterialDialog](https://github.com/hectahertz/react-native-material-dialog#singlepickermaterialdialog)\n* [x] [MultiPickerMaterialDialog](https://github.com/hectahertz/react-native-material-dialog#multipickermaterialdialog)\n\n## Roadmap\n\n* [ ] Support for stacked action buttons.\n* [ ] Dialog that holds a slider.\n* [ ] Simple dialog component that accepts a string as content and styles it.\n\n## MaterialDialog\n\nBasic and customizable dialog that can hold any component.\n\n\u003cimg alt=\"Material Design Collection\" src=\"images/dialog.gif\"/\u003e\n\n```jsx\nimport { MaterialDialog } from 'react-native-material-dialog';\n\n\u003cMaterialDialog\n  title=\"Use Google's Location Service?\"\n  visible={this.state.visible}\n  onOk={() =\u003e this.setState({ visible: false })}\n  onCancel={() =\u003e this.setState({ visible: false })}\u003e\n  \u003cText style={styles.dialogText}\u003e\n    Let Google help apps determine location. This means sending anonymous\n    location data to Google, even when no apps are running.\n  \u003c/Text\u003e\n\u003c/MaterialDialog\u003e;\n```\n\n## Props\n\n| Name            | Description                                                        | Default/Required      | Type    |\n| --------------- | ------------------------------------------------------------------ | --------------------- | ------- |\n| visible         | shows or hides the dialog                                          | required              | bool    |\n| children        | element to be rendered in the content of the dialog                | required              | element |\n| onCancel        | callback when the dialog is closed or the cancel action is pressed | required              | func    |\n| onOk            | callback when the ok action is pressed                             | undefined             | func    |\n| cancelLabel     | label for the cancel action                                        | 'CANCEL'              | string  |\n| okLabel         | label for the ok action                                            | 'OK'                  | string  |\n| title           | text for the dialog title                                          | undefined             | string  |\n| titleColor      | color of the dialog title                                          | 'rgba(0, 0, 0, 0.87)' | string  |\n| backgroundColor | color of the dialog background                                     | '#FFFFFF'             | string  |\n| colorAccent     | color of the action text                                           | '#51BC78'             | string  |\n| scrolled        | whether the form is in scrolled mode                               | false                 | bool    |\n| addPadding      | automatically add paddings to the content                          | true                  | bool    |\n\n## SinglePickerMaterialDialog\n\nReady to use dialog that allows to choose only one option from a list.\n\n\u003cimg alt=\"Material Design Collection\" src=\"images/singlepicker.gif\"/\u003e\n\n```jsx\nimport { SinglePickerMaterialDialog } from 'react-native-material-dialog';\n\n\u003cSinglePickerMaterialDialog\n  title={'Pick one element!'}\n  items={LIST.map((row, index) =\u003e ({ value: index, label: row }))}\n  visible={this.state.singlePickerVisible}\n  selectedItem={this.state.singlePickerSelectedItem}\n  onCancel={() =\u003e this.setState({ singlePickerVisible: false })}\n  onOk={result =\u003e {\n    this.setState({ singlePickerVisible: false });\n    this.setState({ singlePickerSelectedItem: result.selectedItem });\n  }}\n/\u003e;\n```\n\n## Props\n\n| Name            | Description                                                        | Default/Required      | Type                                                 |\n| --------------- | ------------------------------------------------------------------ | --------------------- | ---------------------------------------------------- |\n| visible         | shows or hides the dialog                                          | required              | bool                                                 |\n| items           | list of options to choose from                                     | required              | array of objects with a 'label' and 'value' property |\n| selectedItem    | item that will be selected when opening the dialog                 | required              | object with a 'label' and 'value' property           |\n| onCancel        | callback when the dialog is closed or the cancel action is pressed | required              | func                                                 |\n| onOk            | callback when the ok action is pressed                             | undefined             | func                                                 |\n| cancelLabel     | label for the cancel action                                        | 'CANCEL'              | string                                               |\n| okLabel         | label for the ok action                                            | 'OK'                  | string                                               |\n| title           | text for the dialog title                                          | undefined             | string                                               |\n| titleColor      | color of the dialog title                                          | 'rgba(0, 0, 0, 0.87)' | string                                               |\n| backgroundColor | color of the dialog background                                     | '#FFFFFF'             | string                                               |\n| colorAccent     | color of the action text                                           | '#51BC78'             | string                                               |\n| scrolled        | whether the form is in scrolled mode                               | false                 | bool                                                 |\n\n## MultiPickerMaterialDialog\n\nReady to use dialog that allows to choose several options from a list.\n\n\u003cimg alt=\"Material Design Collection\" src=\"images/multipicker.gif\"/\u003e\n\n```jsx\nimport { MultiPickerMaterialDialog } from 'react-native-material-dialog';\n\n\u003cMultiPickerMaterialDialog\n  title={'Pick some elements!'}\n  colorAccent={this.props.colorAccent}\n  items={LIST.map((row, index) =\u003e {\n    return { value: index, label: row };\n  })}\n  visible={this.state.multiPickerVisible}\n  selectedItems={this.state.multiPickerSelectedItems}\n  onCancel={() =\u003e this.setState({ multiPickerVisible: false })}\n  onOk={result =\u003e {\n    this.setState({ multiPickerVisible: false });\n    this.setState({ multiPickerSelectedItems: result.selectedItems });\n  }}\n/\u003e;\n```\n\n## Props\n\n| Name            | Description                                                        | Default/Required      | Type                                                 |\n| --------------- | ------------------------------------------------------------------ | --------------------- | ---------------------------------------------------- |\n| visible         | shows or hides the dialog                                          | required              | bool                                                 |\n| items           | list of options to choose from                                     | required              | array of objects with a 'label' and 'value' property |\n| selectedItems   | items that will be selected when opening the dialog                | required              | array of objects with a 'label' and 'value' property |\n| onCancel        | callback when the dialog is closed or the cancel action is pressed | required              | func                                                 |\n| onOk            | callback when the ok action is pressed                             | undefined             | func                                                 |\n| cancelLabel     | label for the cancel action                                        | 'CANCEL'              | string                                               |\n| okLabel         | label for the ok action                                            | 'OK'                  | string                                               |\n| title           | text for the dialog title                                          | undefined             | string                                               |\n| titleColor      | color of the dialog title                                          | 'rgba(0, 0, 0, 0.87)' | string                                               |\n| backgroundColor | color of the dialog background                                     | '#FFFFFF'             | string                                               |\n| colorAccent     | color of the action text                                           | '#51BC78'             | string                                               |\n| scrolled        | whether the form is in scrolled mode                               | false                 | bool                                                 |\n\n## References\n\n* https://material.io/guidelines/components/dialogs.html\n\n## License\n\n* [MIT](LICENSE)\n\n## Contact\n\n[Tweet me @hectahertz](https://twitter.com/hectahertz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectahertz%2Freact-native-material-dialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhectahertz%2Freact-native-material-dialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhectahertz%2Freact-native-material-dialog/lists"}