Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AudreyBramy opened this issue Sep 21, 2018 · 0 comments
Open

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

AudreyBramy opened this issue Sep 21, 2018 · 0 comments

Comments

@AudreyBramy
Copy link

AudreyBramy commented Sep 21, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant