{"id":13776638,"url":"https://github.com/shimohq/react-native-prompt-android","last_synced_at":"2025-04-05T06:07:55.528Z","repository":{"id":48333134,"uuid":"70661345","full_name":"shimohq/react-native-prompt-android","owner":"shimohq","description":"A polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform.","archived":false,"fork":false,"pushed_at":"2021-01-19T03:06:13.000Z","size":184,"stargazers_count":130,"open_issues_count":32,"forks_count":76,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-29T05:08:04.606Z","etag":null,"topics":["android","prompt","react-native"],"latest_commit_sha":null,"homepage":"","language":"Java","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/shimohq.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":"2016-10-12T04:04:45.000Z","updated_at":"2024-09-19T17:02:16.000Z","dependencies_parsed_at":"2022-09-16T07:51:09.612Z","dependency_job_id":null,"html_url":"https://github.com/shimohq/react-native-prompt-android","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimohq%2Freact-native-prompt-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimohq%2Freact-native-prompt-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimohq%2Freact-native-prompt-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shimohq%2Freact-native-prompt-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shimohq","download_url":"https://codeload.github.com/shimohq/react-native-prompt-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294539,"owners_count":20915340,"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":["android","prompt","react-native"],"created_at":"2024-08-03T18:00:30.873Z","updated_at":"2025-04-05T06:07:55.500Z","avatar_url":"https://github.com/shimohq.png","language":"Java","funding_links":[],"categories":["\u003ca name=\"Alter,-Prompt,-Action-\u0026-Dialog:-Native-Modules\"\u003eAlter, Prompt, Action \u0026 Dialog: Native Modules\u003c/a\u003e"],"sub_categories":[],"readme":"# react-native-prompt-android\nA polyfill library for Alert.prompt on Android platform, working both on Android and iOS platform(iOS using [AlertIOS.prompt](http://facebook.github.io/react-native/docs/alertios.html#prompt))\n\n\n### Installation\n\n* Install from npm\n\n```bash\nnpm i react-native-prompt-android --save\n```\n\n* Link native library\n\nYou can use react-native-cli:\n```bash\nreact-native link react-native-prompt-android\n```\n\nOr rnpm:\n```bash\nrnpm link react-native-prompt-android\n```\n\n### Usage\n\n```\nimport prompt from 'react-native-prompt-android';\nprompt(\n    'Enter password',\n    'Enter your password to claim your $1.5B in lottery winnings',\n    [\n     {text: 'Cancel', onPress: () =\u003e console.log('Cancel Pressed'), style: 'cancel'},\n     {text: 'OK', onPress: password =\u003e console.log('OK Pressed, password: ' + password)},\n    ],\n    {\n        type: 'secure-text',\n        cancelable: false,\n        defaultValue: 'test',\n        placeholder: 'placeholder'\n    }\n);\n```\n\n## Props\n\n name                 | description                                 | type     | default\n:-------------------- |:------------------------------------------- | --------:|:------------------\n type                 | Text input type: `'numeric', 'secure-text', 'phone-pad', 'email-address'`  |   String | 'default'\n cancelable           |                                             |  Boolean |\n defaultValue         | Default input value                         |   String | ''\n keyboardType         | The keyboard type of first text field(if exists). One of `'default'`, `'email-address'`, `'numeric'`, `'phone-pad'`, `'ascii-capable'`, `'numbers-and-punctuation'`, `'url'`, `'number-pad'`, `'name-phone-pad'`, `'decimal-pad'`, `'twitter'` or `'web-search'`. | String | 'default'\n placeholder          |                                             |   String | ''\n\n\n\n![Android Screen Shoot](./Example/android.png)\n\n![Android Screen Shoot](./Example/ios.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimohq%2Freact-native-prompt-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshimohq%2Freact-native-prompt-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshimohq%2Freact-native-prompt-android/lists"}