react-native-alert-input
npm install react-native-alert-input --save
import AlertInput from 'react-native-alert-input';
<AlertInput />
Prop |
Default |
Required |
Description |
show |
false |
yes |
Controller whether or not show it |
style |
- |
no |
The style of the container |
title |
'' |
no |
The title text of the container or an object |
onCancel |
()=>{} |
no |
Function that is called when user cancels it |
onSubmit |
(text)=>{} |
no |
Function that is called when user submits it |
cancelText |
'cancel' |
no |
The string that is displayed on the cancel button |
submitText |
'submit' |
no |
The string that is displayed on the submit button |
cancelStyle |
- |
no |
The style of the cancel button( ) |
submitStyle |
- |
no |
The style of the submit button( ) |
style |
- |
no |
The style of the container |
placeholder |
'' |
no |
The placeholder text of the input |
inputStyle |
- |
no |
The style of the input |
num |
1 |
no |
The amount of the input or the content you provide |
content |
[] |
no |
If you don't want to show input , you should provide an object array of "num" elements |