Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.74 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.74 KB

react-native-alert-input Monthly download Total downloads

Install

npm install react-native-alert-input --save

Usage

import AlertInput from 'react-native-alert-input';

<AlertInput />

Example

ios android

Properties

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