ios - Image from custom.xcassets in React-Native -


if want use image in react-native js images.xcassets, provide image name uri - eg.

<image style = {styles.somestyle} source = {{uri:'addimage.png'}}> 

but if have custom created .xcassets ? how can imageset accessed rn js ?

it's considered legacy code, can imported like:

<image source={require('image!custom')} />


Comments

Popular posts from this blog

java - AEM: 403 Forbidden occurs when call a Post servlet -

ruby on rails - ActiveRecord order not working -

Google Alert - facebook