Course Content
Foundations of React Native
Foundations of React Native
Image Component
Theory
- The Image component is used to display images in your app;
- It's similar to the HTML
<img>
tag; - You can set the source of the image using the
source
prop; - Including the image's dimensions by providing its width and height is important.
Example
Code Description
Image
component from the
react-native
library.
App
.
View
component
containing a Text
component and an
Image
component. The Image
component is
displaying an image fetched from a remote URI. The width
and
height
props are set to 64 to specify the dimensions of the
displayed image.
In Practice
Everything was clear?
Section 2. Chapter 4
Course Content
Foundations of React Native
Foundations of React Native
Image Component
Theory
- The Image component is used to display images in your app;
- It's similar to the HTML
<img>
tag; - You can set the source of the image using the
source
prop; - Including the image's dimensions by providing its width and height is important.
Example
Code Description
Image
component from the
react-native
library.
App
.
View
component
containing a Text
component and an
Image
component. The Image
component is
displaying an image fetched from a remote URI. The width
and
height
props are set to 64 to specify the dimensions of the
displayed image.
In Practice
Everything was clear?
Section 2. Chapter 4