React Native: Android TextInput autoCorrect={false} does not disable suggestions

对着背影说爱祢 提交于 2020-12-30 06:34:17

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!