Unfocus a TextInput in React Native

后端 未结 6 1569
我寻月下人不归
我寻月下人不归 2020-12-29 20:44

I\'m building an Android app with React Native.

How can you force a TextInput to \"unFocus\", meaning the cursor is blinking inside the text field. The

6条回答
  •  北海茫月
    2020-12-29 21:17

    You can use Keyboard API.

    import { Keyboard, TextInput } from 'react-native';
    
    
    

    Please see the full example in react native offical document.

提交回复
热议问题