react-native开发总结之输入框有焦点情况下需要点击两次 2019-01-08 本文已影响0人 doit_7b21 1.监听键盘事件 2.获取键盘隐藏事件 3.设置input ref属性,在隐藏事件中调用blur方法。 4.componentWillUnmount 中移除监听