react-native-alert-input

2.0.1 • Public • Published

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

Package Sidebar

Install

npm i react-native-alert-input

Weekly Downloads

2

Version

2.0.1

License

ISC

Unpacked Size

8.36 kB

Total Files

4

Last publish

Collaborators

  • liulirui