React Native Classroom
Rajendra Kumar /
Professional /
Mobile Technology
React Native – Text
In this chapter, we will talk about Text component in React Native.
This component can be nested and it can inherit properties from parent to child. This can be useful in many ways. We will show you example of capitalizing the first letter, styling words or parts of the text, 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
In this step, we will use the inheritance pattern. styles.text will be applied to all Text components.
You can also notice how we set other styling properties to some parts of the text. It is important to know that all child elements have parent styles passed to them.
text_example.js
Rajendra Kumar
Skills React Native
Qualifications :-Location :-Delhi,Delhi,Delhi,India
Description:-
I have more then 5 year of Mobile App Development Experience and have worked in Android Native, IOs with Swift,Ionic frameworks.
Explore