Android React Native Local Image Source Using Variable
When using:
Works great, but how do I use a variable instead? ![]()
Solution 1:
This works: https://facebook.github.io/react-native/docs/images.html#images-from-hybrid-app-s-resources
<Imagesource={{uri:rowData.imageFile}} style={{width:40, height:40}} />
Just have to put the images under /android/app/src/main/res/drawable/ and specify image dimensions manually.
Post a Comment for "Android React Native Local Image Source Using Variable"