oblador / react-native-pinchable

Instagram like pinch to zoom for React Native
MIT License
229 stars 26 forks source link

Pinchable not working for video element #18

Open RoyalBosS-Ayush opened 1 year ago

RoyalBosS-Ayush commented 1 year ago

Sample Code

import Video from 'react-native-video';
import Pinchable from 'react-native-pinchable';

<Pinchable>
            <Video
                        source={{ uri: props.uri }}
                        style={{
                            width: desiredSize.width,
                            height: desiredSize.height,
                            borderRadius: 25
                        }}
                        onLoad={handleVideoLayout}
                        muted={muted}
                        onError={handleError}
                        paused={props.paused}
            />
</Pinchable>

Thankfully it worked for Image & FastImage

Bayramito commented 8 months ago

+1