{"id":3973,"url":"https://github.com/testshallpass/react-native-dropdownalert","last_synced_at":"2026-10-19T11:07:47.642Z","repository":{"id":9434999,"uuid":"62021805","full_name":"testshallpass/react-native-dropdownalert","owner":"testshallpass","description":"An alert to notify users about an error or something else","archived":false,"fork":false,"pushed_at":"2026-06-06T23:35:58.000Z","size":36192,"stargazers_count":1875,"open_issues_count":23,"forks_count":251,"subscribers_count":14,"default_branch":"main","last_synced_at":"2026-10-01T21:33:58.561Z","etag":null,"topics":["alert","dropdown","notification","react-native"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/testshallpass.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-06-27T03:09:07.000Z","updated_at":"2026-09-06T02:30:59.000Z","dependencies_parsed_at":"2023-12-15T01:47:56.557Z","dependency_job_id":"4e963a12-9c21-4581-8446-3780bb4ce70f","html_url":"https://github.com/testshallpass/react-native-dropdownalert","commit_stats":{"total_commits":361,"total_committers":32,"mean_commits":11.28125,"dds":"0.32409972299168976","last_synced_commit":"fc0a750de62761cc1693b75fba8fcca2483a882f"},"previous_names":["devbrian/react-native-dropdownalert"],"tags_count":45,"template":false,"template_full_name":null,"purl":"pkg:github/testshallpass/react-native-dropdownalert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testshallpass%2Freact-native-dropdownalert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testshallpass%2Freact-native-dropdownalert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testshallpass%2Freact-native-dropdownalert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testshallpass%2Freact-native-dropdownalert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/testshallpass","download_url":"https://codeload.github.com/testshallpass/react-native-dropdownalert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/testshallpass%2Freact-native-dropdownalert/sbom","scorecard":{"id":336681,"data":{"date":"2025-08-11","repo":{"name":"github.com/testshallpass/react-native-dropdownalert","commit":"0f030d4da421d18ab3aa5360fbe4fc0558b3e0ae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"checks":[{"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":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 1/24 approved changesets -- score normalized to 0","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"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":"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/testshallpass/react-native-dropdownalert/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/testshallpass/react-native-dropdownalert/ci.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"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":"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":"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":"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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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 10 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":"17 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-m5qc-5hw7-8vg7","Warn: Project is vulnerable to: GHSA-76c9-3jph-rj3q","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-c76h-2ccp-4975","Warn: Project is vulnerable to: GHSA-cxrh-j4jr-qwg3","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-g4rg-993r-mgx7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"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-18T04:54:02.321Z","repository_id":9434999,"created_at":"2025-08-18T04:54:02.321Z","updated_at":"2025-08-18T04:54:02.321Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38355206,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"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":["alert","dropdown","notification","react-native"],"created_at":"2024-01-05T20:16:57.324Z","updated_at":"2026-10-19T11:07:47.130Z","avatar_url":"https://github.com/testshallpass.png","language":"TypeScript","funding_links":[],"categories":["Components","TypeScript","Others"],"sub_categories":["UI"],"readme":"# react-native-dropdownalert\n\n[![Platform](https://img.shields.io/badge/-react--native-grey.svg?style=for-the-badge\u0026logo=react)](https://reactnative.dev)\n[![npm version](https://img.shields.io/npm/v/react-native-dropdownalert.svg?style=for-the-badge\u0026logo=npm)](https://www.npmjs.com/package/react-native-dropdownalert)\n[![npm version](https://img.shields.io/npm/dm/react-native-dropdownalert.svg?style=for-the-badge\u0026logo=npm)](https://www.npmjs.com/package/react-native-dropdownalert)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)](https://raw.github.com/testshallpass/react-native-dropdownalert/master/LICENSE)\n[![CI](https://github.com/testshallpass/react-native-dropdownalert/actions/workflows/ci.yml/badge.svg)](https://github.com/testshallpass/react-native-dropdownalert/actions/workflows/ci.yml)\n\n![screenshot](./screenshots/demo.gif)\n\n## Table of contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n- [Support](#support)\n- [Using children prop](#using-children-prop)\n- [Caveats](#caveats)\n- [More Examples](./example/App.tsx)\n\nAn alert to notify users about an error or something else. It can be dismissed by press, cancel, automatic, pan gesture or programmatic. It can be customized and/or you can build your own alert (BYOA) - see [DropdownAlertProps](./DropdownAlert.tsx) on what's available.\n\n## Installation\n\n- `yarn add react-native-dropdownalert`\n- `npm i react-native-dropdownalert --save`\n\n## Usage\n\nimport the library\n\n```javascript\nimport DropdownAlert, {\n  DropdownAlertData,\n  DropdownAlertType,\n} from 'react-native-dropdownalert';\n```\n\ncreate an alert promise function variable\n\n```javascript\nlet alert = (_data: DropdownAlertData) =\u003e new Promise\u003cDropdownAlertData\u003e(res =\u003e res);\n```\n\nadd the component as the last component in the document tree so it overlaps other UI components and set alert prop with alert function\n\n```javascript\n\u003cDropdownAlert alert={func =\u003e (alert = func)} /\u003e\n```\n\ninvoke alert\n\n```javascript\nconst alertData = await alert({\n  type: DropdownAlertType.Error,\n  title: 'Error',\n  message: 'Something went wrong.',\n});\n```\n\n## Support\n\n| react minium version | react-native minium version | package version | reason              |\n| :------------------: | :-------------------------: | :-------------: | ------------------- |\n|       v16.8.0        |           v0.61.0           |     v5.0.0      | use react hooks     |\n|       v16.0.0        |           v0.50.0           |     v3.2.0      | use `SafeAreaView`  |\n|   v16.0.0-alpha.6    |           v0.44.0           |     v2.12.0     | use `ViewPropTypes` |\n\n## Using `children` prop\n\nOption 1 pass child component(s) like so:\n\n```javascript\n\u003cDropdownAlert\u003e{/* insert child component(s) */}\u003c/DropdownAlert\u003e\n```\n\nOption 2 pass child component(s) like so:\n\n```javascript\n\u003cDropdownAlert children={/* insert child component(s) */} /\u003e\n```\n\nEither way `DropdownAlert` will render these instead of the pre-defined child components when alert is invoked. Check out the iOS and Android notifications in example project.\n\n## Caveats\n\n- Modals can overlap `DropdownAlert`` if it is not inside the modal's document tree.\n- It is important you place the `DropdownAlert` below the `StackNavigator`.\n\n\u003e Inspired by: [RKDropdownAlert](https://github.com/cwRichardKim/RKDropdownAlert)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestshallpass%2Freact-native-dropdownalert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftestshallpass%2Freact-native-dropdownalert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftestshallpass%2Freact-native-dropdownalert/lists"}