📜  反应原生检测滑动 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:28.131000             🧑  作者: Mango

代码示例1
 this.touchY = e.nativeEvent.pageY}
      onTouchEnd={e => {
        if (this.touchY - e.nativeEvent.pageY > 20)
          console.log('Swiped up')
      }}
      style={{height: 300, backgroundColor: '#ccc'}}
    />