alwx / react-native-photo-view

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

Extension .png is added to the image source uri on ios #175

Open AudreyBramy opened 5 years ago

AudreyBramy commented 5 years ago

react-native: "0.57.0" react-native-photo-view: "1.5.2"

When an image is displayed, the request to our server is sent two times. The first time ".png" is added to the url. The second time, the url is correct.

class ImageView extends PureComponent {
    render() {
        return (
            <PhotoView
                source={{ uri: this.props.url }}
                loadingIndicatorSource={{ Spinner }}
                minimumZoomScale={1.0}
                maximumZoomScale={3.0}
                androidScaleType="fitCenter"
                style={styles.image}
            />
        );
    }
}

this.props.url = "/"

REQUEST SENT: GET /.png