diff --git a/README.md b/README.md index d771db7..6bfc84f 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ import DialogInput from 'react-native-dialog-input'; message | Message to show in the DialogInput | String (OPTIONAL) hintInput | Text hint to show in the TextInput | String (OPTIONAL) initValueTextInput | Default value for the TextInput | String (OPTIONAL) - textInputProps | Additional properties to add to the TextInput in the form:
`textInputProps={{autoCorrect:false}}` Currently supports:
autoCorrect
autoCapitalize
clearButtonMode
clearTextOnFocus
keyboardType | Object (OPTIONAL) + textInputProps | Additional properties to add to the TextInput in the form:
`textInputProps={{autoCorrect:false}}` Currently supports:
autoCorrect
autoCapitalize
clearButtonMode
clearTextOnFocus
keyboardType
secureTextEntry |Object (OPTIONAL) modalStyle | Styles for the blocking view behind the DialogInput | Object (OPTIONAL) dialogStyle | Styles for the DialogInput main view | Object (OPTIONAL) cancelText | Replacement text for the Cancel button | String (OPTIONAL) diff --git a/index.js b/index.js index ec830ad..e452d05 100644 --- a/index.js +++ b/index.js @@ -48,10 +48,11 @@ class DialogInput extends React.Component{ clearTextOnFocus={(textProps && textProps.clearTextOnFocus==true)?textProps.clearTextOnFocus:false} keyboardType={(textProps && textProps.keyboardType)?textProps.keyboardType:'default'} autoFocus={true} + secureTextEntry={(textProps && textProps.secureTextEntry)?textProps.secureTextEntry:false} onKeyPress={() => this.setState({ openning: false })} underlineColorAndroid='transparent' placeholder={hintInput} - onChangeText={(inputModal) => this.setState({inputModal})} + onChangeText={(inputModal) => this.setState({ inputModal, openning: false })} value={value} />