Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- onLoadError=(event)=>{
- alert('Img load error');
- this.imgPayIcn.setNativeProps({
- source :{uri:'https://facebook.github.io/react/img/logo_og.png'} //not able to update view with new image... no effect
- });
- <Image ref={(ref) => this.imgPayIcn = ref} source={this.props.source} style={{height:50,width:50}} resizeMode='cover' onError={this.onLoadError}/>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement