Created
October 24, 2018 12:09
-
-
Save kmagiera/773f56e32c40f78068f6ca13b2bce4ad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
constructor(props) { | |
super(props); | |
const gestureX = new Value(0); | |
const state = new Value(-1); | |
this._onGestureEvent = event([ | |
{ | |
nativeEvent: { | |
translationX: gestureX, | |
state: state, | |
}, | |
}, | |
]); | |
this._transX = new Value(0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment