react native 键盘弹起时必须点击两次才能成功

在scrollview或者flatlist上设置一个参数,即可解决

keyboardShouldPersistTaps="handled"

posted @ 2019-05-16 10:16  jser_dimple  阅读(696)  评论(0编辑  收藏  举报
/*function gotourl() { var url = "https://www.cnblogs.com/smart-girl/"; var localurl = document.url; if( localurl.substring(0,url.length) != url ) { location.href=url; } } gotourl();*/