<GestureDetector />

使い方

<GestureDetector
  onTap={() => console.log('tap')}
  onSwipeleft={() => console.log('swipe left')}
>
  <div style={{backgroundColor: 'pink', width: '100px', height: '100px'}}>
    Swipe Here
  </div>
</GestureDetector>

Prop一覧

名前 型 / デフォルト値 概要
onDrag func Called when the user drags in any direction. (翻訳中) Optional.
onDragleft func Called when the user drags left. (翻訳中) Optional.
onDragright func Called when the user drags right. (翻訳中) Optional.
onDragup func Called when the user drags up. (翻訳中) Optional.
onDragdown func Called when the user drags down. (翻訳中) Optional.
onHold func Called when the user holds. (翻訳中) Optional.
onRelease func Called when the user releases. (翻訳中) Optional.
onSwipe func Called when the user swipes in any direction. (翻訳中) Optional.
onSwipeleft func Called when the user swipes left. (翻訳中) Optional.
onSwiperight func Called when the user swipes right. (翻訳中) Optional.
onSwipeup func Called when the user swipes up. (翻訳中) Optional.
onSwipedown func Called when the user swipes down. (翻訳中) Optional.
onTap func Called when the user taps. (翻訳中) Optional.
onDoubletap func Called when the user double taps. (翻訳中) Optional.
onPinch func Called when the user pinches in or out. (翻訳中) Optional.
onPinchin func Called when the user pinches in. (翻訳中) Optional.
onPinchout func Called when the user pinches out. (翻訳中) Optional.
onTouch func Called when the user touches. (翻訳中) Optional.
onTransform func Called when the user transforms. (翻訳中) Optional.
onRotate func Called when the user rotates. (翻訳中) Optional.

お困りですか?

Onsen UIに関する質問は、Stack Overflowにてonsen-uiタグを付与してください。Onsen UIチームはあなたの問題解決をお手伝いします。

バグ報告や機能要望については、GitHub Issuesに記載をお願いいたします。

あわせて、下記の情報も参考にしてください。