问题
autoCorrect={false} is suppose to force no suggestions mode, and therefore no underlining of text in the input field but it's not working.
UPDATE 8/18/18: It seems to disable the suggestions but not the underlining.
回答1:
It's a bug in React Native but you can use : keyboardType="visible-password"
to disable autocorrect suggestions.
回答2:
autoCorrect={false} is working some of android phones on my project but If you use with keyboardType="visible-password" is work on my project!
回答3:
this is a bug in React Native.
https://github.com/facebook/react-native/issues/18457
Your options for now are probably to:
- wait for a fix to come out
- or submit a PR to fix the issue in React Native
- or write your own native module for text input that has the correct behavior
来源:https://stackoverflow.com/questions/50143702/react-native-android-textinput-autocorrect-false-does-not-disable-suggestions