Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

on iOS imageUrl should be https and not http to display images #4

Open
lc3t35 opened this issue May 15, 2017 · 1 comment
Open

on iOS imageUrl should be https and not http to display images #4

lc3t35 opened this issue May 15, 2017 · 1 comment
Assignees

Comments

@lc3t35
Copy link

lc3t35 commented May 15, 2017

As found by Nilian, http://stackoverflow.com/questions/38153335/react-native-loading-image-over-https-works-while-http-does-not-work .
Server side should verify thant imageUrl is https, otherwise on RN side, a rewrite rule can be implemented in Post.js

render () {
    return (
      <View style={{flex: 1, width: 150, height: 150}}>
        <Image
          source={{ uri: this.props.post.imageUrl.replace(/^http:\/\//i, 'https://') }}
          style={{flex: 1, width: 150, height: 150}}
        />
        <Text>{this.props.post.description}</Text>
      </View>
    )
  }
@marktani
Copy link
Contributor

Probably the best curse of action here is to add a comment to the quickstart that mentions this limitation.

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

No branches or pull requests

3 participants