react-native-image-view
react-native-image-view copied to clipboard
fix jump on first press
Hey @davidbiller, many thanks for PR. I've checked new behaviour with changes you made. I looks like it fixes scrolling issue, but from other hand breaks vertical moving of picture. I now looking for solution to fix both problems (maybe some big changes needed).
So can you explain what do you mean? i can move the image in both directions...
I cant move image up or down. If I swipe fast image view will close, but if vertical velocity is low, then image doesn't moving.
The real solution is to add this as the bottom of the constructor:
this.state.imageTranslate = { x, y };
this.state.imageScale = this.getInitialScale();