Skip to content

Instantly share code, notes, and snippets.

@kmagiera
Created October 24, 2018 12:09
Show Gist options
  • Save kmagiera/773f56e32c40f78068f6ca13b2bce4ad to your computer and use it in GitHub Desktop.
Save kmagiera/773f56e32c40f78068f6ca13b2bce4ad to your computer and use it in GitHub Desktop.
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