Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native get uri of the image in the app assets folder

import LocalImage from '../assets/image.png';

const LocalImageUri = Image.resolveAssetSource(LocalImage).uri;

<Image source={{uri: LocalImageUri}} />
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #uri #image #app #assets #folder
ADD COMMENT
Topic
Name
5+1 =