Complete the code to import the Image component from React Native.
import { [1] } from 'react-native';
The Image component is imported from react-native to display images.
Complete the code to display a local image named 'logo.png' stored in the assets folder.
<Image source={require('./assets/[1]')} style={{width: 100, height: 100}} />The require function needs the exact filename of the local image, here 'logo.png'.
Fix the error in the code to display a remote image from a URL.
<Image source={{uri: '[1]'}} style={{width: 150, height: 150}} />The URL must start with 'https://' to load the remote image correctly.
Fill both blanks to set the width and height of the Image component to 200.
<Image source={{uri: 'https://example.com/pic.png'}} style={{width: [1], height: [2] />The width and height should be numbers, not strings, so use 200 without quotes.
Fill all three blanks to display a local image with a border radius of 10.
<Image source={require('./assets/[1]')} style={{width: [2], height: [3], borderRadius: 10}} />The local image file is 'avatar.png' and width and height should be 150 to show a square image with rounded corners.