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

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

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