react native - Image from Google REST API won't display -
in react native, trying display image retrieve fetch (i hard-coded value here purpose of example):
<image source={uri:{'http://books.google.com/books/content?id=snybrgeacaaj&printsec=frontcover&img=1&zoom=5&source=gbs_api'}} />
but won't display anything... idea how this?
update form correct show image when have uri :
<image source={{ uri: 'https://books.google.com/books/content?id=snybrgeacaaj&printsec=frontcover&img=1&zoom=5&source=gbs_api' }} style={{width: 400, height: 400}}/>
review documentation oficial https://facebook.github.io/react-native/releases/0.21/docs/image.html
Comments
Post a Comment