react-native 0.31.0 image not loaded or displayed
See original GitHub issuei 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:
- Created 7 years ago
- Reactions:3
- Comments:11 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
<Image ... />
needs to have awidth
andheight
define in style propertyIf you follow this it should work.
@nilaybrahmbhatt iOS? From iOS 8 and newer versions, by default all external require/connections should be over HTTPS.