美文网首页
ReactNative TextInput 增加onPress事

ReactNative TextInput 增加onPress事

作者: 章文顺 | 来源:发表于2020-01-16 10:15 被阅读0次

    上代码:

    <TouchableOpacity onPress={() => console.log("Pressed")}>
      <TextInput
       pointerEvents="none"
      />
    </TouchableOpacity>
    

    关键属性:pointerEvents="none"

    博客迁移新地址:点击前往

    大前端知识库收集分享 www.190tech.site 壹玖零Tech
    搜罗各种前后端奇淫技巧,花式编程思想,日日更新,速来围观吧...

    引用:https://github.com/facebook/react-native/issues/15570

    相关文章

      网友评论

          本文标题:ReactNative TextInput 增加onPress事

          本文链接:https://www.haomeiwen.com/subject/olcfzctx.html