Description
react-native-prompt-android is a polyfill that brings Alert.prompt to Android in React Native. React Native provides Alert.prompt on iOS, so this library lets the same prompt dialog work on both platforms, with iOS still using AlertIOS.prompt underneath. You install it from npm and then link the native library, and the README gives a link step for react-native-cli and another for rnpm. The usage section shows how the prompt is called. The props let you set the input type, such as numeric, secure text, phone pad or email address, choose whether the dialog can be cancelled, set a default value, pick the keyboard type of the first text field, and set a placeholder. The keyboard type accepts options such as numbers-and-punctuation, url, decimal-pad and web-search. The README includes a props table that shows each option and its default. The library is aimed at React Native developers who need a text prompt on Android without writing a custom dialog.…
Highlights
- Alert.prompt for Android in React Native
- Works on iOS through AlertIOS.prompt
- Input types, including secure text and email
- Default value, placeholder and keyboard type
- Cancelable option
Ratings & Reviews
No ratings yet
Be the first to rate react-native-prompt-android.
People also visit
react-native-prompt-android FAQ
What does this library do?
It adds an Alert.prompt equivalent for Android in React Native, so a text prompt dialog works on both platforms.
How do I install it?
Install it from npm, then link the native library with react-native-cli or rnpm, as the README describes.
What input types are available?
The type prop supports numeric, secure text, phone pad and email address, and the default is a standard text field.
Can the prompt be cancelled?
The cancelable prop controls this, as listed in the props table.
What does it use on iOS?
The README says the iOS side uses AlertIOS.prompt.
What are the best react-native-prompt-android alternatives?
Popular alternatives to react-native-prompt-android include react-native-advanced-input-mask, react-native-mask-input and react-native-date-picker. See all react-native-prompt-android alternatives




















