Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-dialog-input

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 1.0.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2K
decreased by-7.36%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 10 Jul 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc