react-native-photo-view icon indicating copy to clipboard operation
react-native-photo-view copied to clipboard

onStartShouldSetPanResponder: (evt, gestureState) => evt. nativeEvent.touches.length is always equal to 1

Open qiaolin-pan opened this issue 6 years ago • 0 comments

this._panResponder = PanResponder.create({
    ...
    onStartShouldSetPanResponder: (evt, gestureState) => {
        // When I use two fingers, it is also equal to 1
        console.log(evt.nativeEvent.touches.length);
    },
    ...
});

<View {...this._panResponder.panHandlers}>
    <PhotoView />
</View>

How can I resolve this ? Sorry, my English is not good

qiaolin-pan avatar May 17 '18 02:05 qiaolin-pan