React Native - Text
React Native - Text
React Native's Text component will be discussed in this chapter.
A nested component can inherit properties from its parent. This is useful in many ways. We will show you examples of capitalizing the first letter, styling words, etc.
Step 1: Create File
The file we are going to create is text_example.js
Step 2: App.js
In this step, we will just create a simple container.
App.js
Step 3: Text
This step uses the inheritance pattern. styles.text will be applied to all Text components.
It's also important to know that all child elements inherit parent styles from their parents.
text_example.js
You will receive the following output −
Frequently Asked Questions
+
Ans: React Native - Picker view more..
+
Ans: React Native - ActivityIndicator view more..
+
Ans: React Native - Modal view more..
+
Ans: React Native - Text view more..
+
Ans: React Native - Alert view more..
Recommended Posts:
- React Native Tutorial
- React Native - Overview
- React Native - Environment Setup
- React Native - App
- React Native - State
- React Native - Props
- React Native - Styling
- React Native - FlexboxReact Native - Flexbox
- React Native - FlexboxReact Native - Flexbox
- React Native - ListView
- React Native - Text Input
- React Native - ScrollView
- React Native - Images
- React Native - HTTP
- React Native - Buttons
Rating - NAN/5
Advertisements