maxlength prop doesn't actually work
arjun-bhatt opened this issue · comments
arjun-bhatt commented
Peeked through the source code too and doesn't look like it's accounted for
Sebastián Estrella commented
Hi @arjun-bhatt it is added from this commit and it should comes from the textInputProps
prop
react-native-dialog-input@1.0.8
<DialogInput isDialogVisible={this.state.showDialog}
title={"DialogInput 1"}
message={"Message for DialogInput #1"}
hintInput ={"HINT INPUT"}
submitInput={ (inputText) => {this.sendInput(inputText)} }
textInputProps={{
maxLength: 5,
}}
closeDialog={ () => {this.showDialog(false)}}>
</DialogInput>