ascoders / react-native-image-viewer

🚀 tiny & fast lib for react native image viewer pan and zoom
MIT License
2.45k stars 580 forks source link

Does nothing #310

Closed kuriel-trivu closed 5 years ago

kuriel-trivu commented 5 years ago

following the basic sample, does nothing. nothing rendered, nothing visible.

mj-haghighi commented 5 years ago
    images = images.map((image) => {
        return {
            url: 'https://avatars2.githubusercontent.com/u/7970947?v=3&s=460',
            width: image.meta.ImageWidth,
            height: image.meta.ImageHeight,
            props: {
                source: {
                    uri: image.path
                }
            }
        };
    });
    return (
        <ImageViewer
            imageUrls={images}
            enableSwipeDown
            onSwipeDown={() => {
                this.props.navigation.pop()
            }}
        />
    );

this work for react-native 57 @kuriel-trivu