Skip to content

reck753/rescript-gesture-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rescript-gesture-handler

ReScript bindings for react-native-gesture-handler.

rescript-gesture-handler x.y.* means it's compatible with react-native-gesture-handler x.y.*

NOTE: v2 isn't backwards compatible with v1, even though original react-native-gesture-handler is. Mainly because I believe they will be dropping support for it in the near future (they already warn you if you are using v1 API).

Status

Work in progress.

v1 (See v1.10.0 branch)

NOTE: There won't be any progress with v1 until v2 is finished.

  • FlingGestureHandler
  • PanGestureHandler
  • ...

v2

  • Fling
  • Pan
  • Pinch
  • Force
  • ...

Installation

v1

npm install [email protected]
# or
yarn add [email protected]

v2

npm install rescript-gesture-handler
# or
yarn add rescript-gesture-handler

Example (v2)

Fling

open Directions
let flingGesture =
    Gesture.makeFling()
    ->Fling.direction(Direction.make(directions.left))
    ->Fling.onEnd((_event, _success) => ResAnimated.runOnJS(__someFunction__)(.))

About

ReScript binding for react-native-gesture-handler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published