parse.com - React native image from Parse -


i trying add image parse react native project. ok adding text:

<text style={{flex: 1, fontsize: 14, textalign: 'justify', color: 'black', }}>      {this.props.tweet.get('username')} </text> 

but can not add image:

<image  source={this.props.tweet.get('photo')} style={{width: 50, height: 50}}/> 

i trying

var photo = this.props.tweet.get('photoprofile'); ....code   <image  source={{uri: {photo}}}    style={{width: 50, height: 50}}/> 

and

var photo = this.props.tweet.get('photoprofile'); ....code <image  source={photo}    style={{width: 50, height: 50}}/> 

it not work.

everything work!!!

var imagefile = this.props.tweet.get('photoprofile'); var imageurl = imagefile.url();   ...code <image  source=  {{uri: imageurl}}               style={{width: 50, height: 50}} /> 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -