{"id":24063988,"url":"https://github.com/qeepsake/react-native-custom-alerts","last_synced_at":"2025-04-23T17:45:10.654Z","repository":{"id":57336346,"uuid":"288734103","full_name":"Qeepsake/react-native-custom-alerts","owner":"Qeepsake","description":"Setup custom alerts and invoke them anywhere in your application (written in TypeScript!)","archived":false,"fork":false,"pushed_at":"2021-10-05T16:51:38.000Z","size":399,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T04:48:03.499Z","etag":null,"topics":["alerts","custom","i18n","react","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Qeepsake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-19T13:05:30.000Z","updated_at":"2021-10-05T16:51:41.000Z","dependencies_parsed_at":"2022-09-11T10:03:07.975Z","dependency_job_id":null,"html_url":"https://github.com/Qeepsake/react-native-custom-alerts","commit_stats":null,"previous_names":["aspect-apps/react-native-custom-alerts"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-custom-alerts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-custom-alerts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-custom-alerts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Qeepsake%2Freact-native-custom-alerts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Qeepsake","download_url":"https://codeload.github.com/Qeepsake/react-native-custom-alerts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250484150,"owners_count":21438196,"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":["alerts","custom","i18n","react","react-native"],"created_at":"2025-01-09T10:06:02.527Z","updated_at":"2025-04-23T17:45:10.623Z","avatar_url":"https://github.com/Qeepsake.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Custom Alerts\n\nThis library provides the ability to define alerts which can be used all across an application. Instead of having a separate function for all these alerts, we can define them when the application starts and easily use them wherever we need them.\n\n## Install\n\n```sh\n npm install @qeepsake/react-native-custom-alerts\n```\n\nor\n\n```sh\n yarn add @qeepsake/react-native-custom-alerts\n```\n\n## Usage\n\nYou need to register you alerts when the application starts.\n\n```js\nimport {CustomAlert} from 'react-native-custom-alerts';\n\nCustomAlert.setup('my-custom-alert', 'Title', 'Message', buttons, options);\nCustomAlert.setup('my-second-alert', 'Title', 'Message', buttons, options);\n```\n\nNow, you can place the alert you want to show elsewhere in your application.\n\n```js\nimport {CustomAlert} from 'react-native-custom-alerts';\n\nCustomAlert.alert('my-second-alert');\n```\n\n## Methods\n\n### setup()\n\n```js\nstatic setup(name, title, message?, buttons?, options?)\n```\n\n### alert()\n\n```js\nstatic alert(name)\n```\n\n## License\n\nThis project is licensed under the MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeepsake%2Freact-native-custom-alerts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqeepsake%2Freact-native-custom-alerts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqeepsake%2Freact-native-custom-alerts/lists"}