{"id":28540653,"url":"https://github.com/leecade/react-native-alert","last_synced_at":"2025-07-20T01:31:37.617Z","repository":{"id":30397090,"uuid":"33949834","full_name":"leecade/react-native-alert","owner":"leecade","description":"Use AlertIOS as a simple way just like native javascript.","archived":false,"fork":false,"pushed_at":"2016-11-07T16:30:55.000Z","size":3,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-07T11:41:34.585Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leecade.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":"2015-04-14T18:36:42.000Z","updated_at":"2020-05-15T12:02:08.000Z","dependencies_parsed_at":"2022-08-03T15:13:47.729Z","dependency_job_id":null,"html_url":"https://github.com/leecade/react-native-alert","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leecade/react-native-alert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leecade%2Freact-native-alert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leecade%2Freact-native-alert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leecade%2Freact-native-alert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leecade%2Freact-native-alert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leecade","download_url":"https://codeload.github.com/leecade/react-native-alert/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leecade%2Freact-native-alert/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264641809,"owners_count":23642688,"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":"2025-06-09T19:36:57.792Z","updated_at":"2025-07-20T01:31:37.573Z","avatar_url":"https://github.com/leecade.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-alert\n\n[![npm version](https://badge.fury.io/js/react-native-alert.svg)](http://badge.fury.io/js/react-native-alert)\n\nUse [AlertIOS](http://facebook.github.io/react-native/docs/alertios.html#content) as a simple way just like native javascript.\n\n## INSTALL\n\n```bash\n$ npm i react-native-alert --save\n```\n\n## USAGE\n\n```javascript\nvar alert = require('react-native-alert')\n\n// Simple way\nalert('123')\nalert(123) // Number is allowed\n\n// With title\nalert('123', 'title')\n\n// With buttons\nalert('123', ['button'])\nalert('123', ['button', {text: 'alertButton', onPress: () =\u003e alert('ok')}])\n\n// Complete usage\nalert('title', '123', [\n  {text: 'Foo', onPress: () =\u003e console.log('Foo Pressed!')},\n  {text: 'Bar', onPress: () =\u003e console.log('Bar Pressed!')},\n])\n\n// Or just tell the button text\nalert('title', '123', ['btn1', 'btn2', {text: 'Bar', onPress: () =\u003e console.log('Bar Pressed!')}])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleecade%2Freact-native-alert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleecade%2Freact-native-alert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleecade%2Freact-native-alert/lists"}