{"id":21184562,"url":"https://github.com/skreweverything/react-native-input-prompt","last_synced_at":"2025-07-19T11:33:27.257Z","repository":{"id":31987963,"uuid":"131225989","full_name":"SkrewEverything/react-native-input-prompt","owner":"SkrewEverything","description":"A cross-platform user input prompt component for React Native with Native UI.","archived":false,"fork":false,"pushed_at":"2021-05-07T01:57:07.000Z","size":6021,"stargazers_count":47,"open_issues_count":3,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-07T00:36:34.715Z","etag":null,"topics":["android","dialog","input","ios","javascript","node","npm","npm-module","npm-package","prompt","react","react-native","reactjs"],"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/SkrewEverything.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":"2018-04-27T00:51:01.000Z","updated_at":"2024-02-19T14:30:56.000Z","dependencies_parsed_at":"2022-08-07T17:01:17.921Z","dependency_job_id":null,"html_url":"https://github.com/SkrewEverything/react-native-input-prompt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkrewEverything%2Freact-native-input-prompt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkrewEverything%2Freact-native-input-prompt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkrewEverything%2Freact-native-input-prompt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SkrewEverything%2Freact-native-input-prompt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SkrewEverything","download_url":"https://codeload.github.com/SkrewEverything/react-native-input-prompt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225606570,"owners_count":17495551,"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","dialog","input","ios","javascript","node","npm","npm-module","npm-package","prompt","react","react-native","reactjs"],"created_at":"2024-11-20T18:09:21.425Z","updated_at":"2024-11-20T18:09:29.438Z","avatar_url":"https://github.com/SkrewEverything.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-input-prompt\n\nA cross-platform input prompt component for React Native.\n\n## Installation\n\n```sh\n$ npm install --save react-native-input-prompt\n```\n## Demo\n\n\n| iOS                    | Android                 |\n| ---------------------- | ----------------------- |\n| ![](./iphone-demo.gif) | ![](./android-demo.gif) |\n\n## Basic Usage\n\n```js\n\u003cPrompt\n    visible={this.state.visible}\n    title=\"Say Something\"\n    placeholder=\"Type Something\"\n    onCancel={() =\u003e\n        this.setState({\n            text: \"User Cancelled!\",\n            visible: !this.state.visible\n        })\n    }\n    onSubmit={text =\u003e\n        this.setState({\n            text: \"User submitted: \" + text,\n            visible: !this.state.visible\n        })\n    }\n/\u003e\n```\n\n## API\n\nProps:\n\n*   `title` (string, required): The title to be displayed on the prompt.\n*   `visible` (boolean, required): When `true`, the prompt is displayed, closes otherwise.\n*   `placeholder` (string, required): The placeholder text of the prompt.\n*   `cancelText` (string): The string that is displayed on the cancel button (defaults to \"Cancel\").\n*   `submitText` (string): The string that is displayed on the submit button (defaults to \"Submit\").\n*   `cancelButtonStyle` (object): To change the style of \"Cancel button\".\n*   `submitButtonStyle` (object): To change the style of \"Submit button\".\n*   `cancelButtonTextStyle`(object): To change the style of text displayed inside \"Cancel button\".\n*   `submitButtonTextStyle` (object): To change the style of text displayed inside \"Submit button\".\n*   `titleStyle` (object): To change the style of title text.\n*   `onChangeText` (function): Function that is called with user input when it changes.\n*   `onSubmit` (function, required): Function that is called when user presses on \"Submit button\".\n*   `onCancel` (function, required): Function that is called when user presses on \"Cancel button\".\n\n## Contributing\n\nDon't find what you want or want to improve the project?\n\nFeel free to fork the project and submit a pull request with your changes!\n\nNot familiar or feeling lazy? Open issue about your idea or tip!\n\n## License\n\nMIT\n\n**Free Software, Hell Yeah!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskreweverything%2Freact-native-input-prompt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskreweverything%2Freact-native-input-prompt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskreweverything%2Freact-native-input-prompt/lists"}