oblador / react-native-pinchable

Instagram like pinch to zoom for React Native
MIT License
224 stars 23 forks source link

Pinchable not working for video element #18

Open RoyalBosS-Ayush opened 11 months ago

RoyalBosS-Ayush commented 11 months 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 6 months ago

+1