Answers for "photo in React native"

8

image source react native

//Local import (relative path)
<Image source={require("./assets/snack-icon.png")} />
//External import (web path) you should specify the width and height
<Image source={{uri:"https://picsum.photos/200", width:200,height:200 }}/>
Posted by: Guest on August-11-2021
6

ways to show image in react native

<Image
  source={require("relative_path_to_image")}
  style={{ width: 100, height: 100 }}
/>
Posted by: Guest on October-30-2020
4

add image in react native

<Image
  source={{ uri: 'app_icon' }}
  style={{ width: 40, height: 40 }}
/>
Posted by: Guest on June-13-2020
3

photo in React native

// useing require is more secure
<Image 
	source = {require('C:/Users/Tutorialspoint/Desktop/NativeReactSample/logo.png')} 
/>
Posted by: Guest on September-16-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language