You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I do the action to close the view in the click event and it works fine in android but on ios when I try to double tap to enlarge the image the onTap event always fires causing my view to close.
Expected behavior
Double-clicking will not trigger the onTap event,like android.
Example code
<PhotoView
source={{uri:"https://github.blog/wp-content/uploads/2022/04/InFocus-featured-image.png"}}
androidScaleType="fitCenter"
style={{width: 300, height: 300}}
onViewTap={(event) => {
if (Platform.OS === 'ios') { // Double-click on ios will trigger onViewTap events, but not on Android
console.log('onViewTap', 'ios')
} else {
this.props.navigation.goBack()
}
}}
onTap={(event) => {
if (Platform.OS === 'ios') { // Double-click on ios will trigger onTap events, but not on Android
console.log('onTap', 'ios')
} else {
this.props.navigation.goBack()
}
}}
onScale={() => {
console.log('onScale')
}}
/>
Describe the bug
I do the action to close the view in the click event and it works fine in android but on ios when I try to double tap to enlarge the image the onTap event always fires causing my view to close.
Expected behavior
Double-clicking will not trigger the onTap event,like android.
Example code
package.json
The text was updated successfully, but these errors were encountered: