evblurbs / react-native-md-textinput

React Native TextInput styled with Material Design.
322 stars 122 forks source link

[bug] it cannot support the function onChangeText #42

Open ElonXun opened 7 years ago

ElonXun commented 7 years ago

for function : onChangeText={(text) => { this.setState({ password: text, })

it cannot work

eslambasher commented 7 years ago

try this way https://github.com/evblurbs/react-native-md-textinput/blob/master/examples/FloatingLabel/index.android.js#L36

dzpt commented 7 years ago

@eslambasher It's better consider as a bug. Changing from setState to set property might cause many troubles like masking, text updating while using input.