Working with View and Text Components
View Component
- The
Viewcomponent is a fundamental building block in React Native, similar to adivin web development; - It's used to structure and style the layout of your mobile app;
- Properties like
flex,justifyContent, andalignItemscontrol its layout.
Example
Text Component
- The
Textcomponent is used to display text in your app; - It's similar to the HTML
<span>or<p>tags; - You can style text using various properties such as
fontSize,color, andfontWeight.
Example
In Practice
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 3
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Kysy minulta kysymyksiä tästä aiheesta
Tiivistä tämä luku
Näytä käytännön esimerkkejä
Mahtavaa!
Completion arvosana parantunut arvoon 3.45
Working with View and Text Components
Pyyhkäise näyttääksesi valikon
View Component
- The
Viewcomponent is a fundamental building block in React Native, similar to adivin web development; - It's used to structure and style the layout of your mobile app;
- Properties like
flex,justifyContent, andalignItemscontrol its layout.
Example
Text Component
- The
Textcomponent is used to display text in your app; - It's similar to the HTML
<span>or<p>tags; - You can style text using various properties such as
fontSize,color, andfontWeight.
Example
In Practice
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 3