Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 23, 2018. It is now read-only.
This repository was 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
Assignees
@lc3t35

Description

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

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /