joseestrella89 / react-native-dialog-input

Modal with input for react native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maxlength prop doesn't actually work

arjun-bhatt opened this issue · comments

Peeked through the source code too and doesn't look like it's accounted for

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>