1.监听键盘事件
2.获取键盘隐藏事件
3.设置input ref属性,在隐藏事件中调用blur方法。
4.componentWillUnmount 中移除监听
1.监听键盘事件
2.获取键盘隐藏事件
3.设置input ref属性,在隐藏事件中调用blur方法。
4.componentWillUnmount 中移除监听
本文标题:react-native开发总结之输入框有焦点情况下需要点击两次
本文链接:https://www.haomeiwen.com/subject/udkvrqtx.html
网友评论