react-native-fullstack-graphql icon indicating copy to clipboard operation
react-native-fullstack-graphql copied to clipboard

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

Open lc3t35 opened this issue 8 years ago • 1 comments

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>
    )
  }

lc3t35 avatar May 15 '17 10:05 lc3t35

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

marktani avatar Jun 30 '17 12:06 marktani