alwx / react-native-photo-view

Pinch-to-zoom view for React Native (both iOS and Android)
MIT License
816 stars 434 forks source link

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

Open qiaolin-pan opened 6 years ago

qiaolin-pan commented 6 years ago
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