question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native 0.31.0 image not loaded or displayed

See original GitHub issue

i am started using react-native 0.31.0.

my code is

onLoadStart(e){
    console.log('LOAD START');
  }
  onLoadProgress(e){
    var progress = Math.round(100*e.nativeEvent.written / e.nativeEvent.total);
    if (progress < _oldProgress){
      console.log('FAIL');
    }
    _oldProgress = progress;
    console.log('LOAD PROGRESS: '+progress);
  }
  onLoaded(e){
    console.log('LOAD ENDED');
  }



    render() {
    return (
<Image
          source={{uri:'http://mobinteg.com/wp-content/uploads/2015/03/news_img.png'}}
          resizeMode='cover'
          onLoadProgress={this.onLoadProgress}
          onLoadStart={this.onLoadStart}
          onLoadEnd={this.onLoaded}
          style={{height:200,width:200,flex:1}}>
        </Image> );
}


function load start and load end works and print the log but still image is not displayed on screen

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
Maxwell2022commented, Oct 18, 2016
  • It needs to be served over HTTPS
  • It needs to have a valid SSL certificate
  • <Image ... /> needs to have a width and height define in style property

If you follow this it should work.

1reaction
AgtLucascommented, Aug 24, 2016

@nilaybrahmbhatt iOS? From iOS 8 and newer versions, by default all external require/connections should be over HTTPS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native Image not showing, How do i fix? - Stack Overflow
After updating IOS 14.x it is an issue being generated that image is not being shown. Here is some info against that.
Read more >
react-native-maps - npm
Issue: Since android needs to render its marker views as a bitmap, the animations APIs may not be compatible with the Marker views....
Read more >
Images - React Native
In React Native, image decoding is done in a different thread. In practice, you already need to handle the case when the image...
Read more >
Load Images In React Native Dummy Quick - YouTube
In this video we'll learn how to load images dummy fast The way we'll do it is gonna be using a library called...
Read more >
Using Images in React Native - JavaScript in Plain English
A few hours ago, I was working on a piece of React Native code that required dynamic image exports off the file system....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found