Socket
Socket
Sign inDemoInstall

react-native-dialog-input

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-dialog-input

Dialog with input for React Native on iOS and Android.


Version published
Weekly downloads
873
decreased by-29.99%
Maintainers
1
Install size
13.6 kB
Created
Weekly downloads
 

Readme

Source

react-native-dialog-input

Dialog with input for React Native on iOS and Android.

Examples

React Native Dialog Input iOS React Native Dialog Input Android

Setup

npm install --save react-native-dialog-input

Usage

import DialogInput from 'react-native-dialog-input';
...
<DialogInput isDialogVisible={this.state.isDialogVisible}
            title={"DialogInput 1"}
            message={"Message for DialogInput #1"}
            hintInput ={"HINT INPUT"}
            submitInput={ (inputText) => {this.sendInput(inputText)} }
            closeDialog={ () => {this.showDialog(false)}}>
</DialogInput>
...

Properties

namedescriptiontype
isDialogVisibleCondition to show or hide the DialogInputBoolean
titleTitle to show in the DialogInputString (OPTIONAL)
messageMessage to show in the DialogInputString (OPTIONAL)
hintInputText hint to show in the TextInputString (OPTIONAL)
hintTextColorColor of the text hintString (OPTIONAL)
initValueTextInputDefault value for the TextInputString (OPTIONAL)
textInputPropsAdditional properties to add to the TextInput in the form:
textInputProps={{autoCorrect:false}} Currently supports:
autoCorrect
autoCapitalize
clearButtonMode
clearTextOnFocus
keyboardType
secureTextEntry
maxLength
Object (OPTIONAL)
modalStyleStyles for the blocking view behind the DialogInputObject (OPTIONAL)
dialogStyleStyles for the DialogInput main viewObject (OPTIONAL)
cancelTextReplacement text for the Cancel buttonString (OPTIONAL)
submitTextReplacement text for the Submit buttonString (OPTIONAL)

Methods

namedescriptionreturns
submitInput()Event fired when the user press the SUBMIT buttonString
closeDialog()Event fired when the user press the CLOSE button-

Keywords

FAQs

Last updated on 10 Jul 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc