concept text element in category react native

This is an excerpt from Manning's book React Native in Action.
At the top of the file, you require
Reactfrom'react', as well asView,Text, andStyleSheetfrom'react-native'.Viewis the most fundamental building block for creating React Native components and the UI in general and can be thought of like adivin HTML.Textallows you to create text elements and is comparable to aspantag in HTML.StyleSheetlets you create style objects to use in an application. These two packages (reactandreact-native) are available as npm modules.
With the exception of flex properties, which we have yet to cover, most of the styles applicable to
Viewelements will also work as expected withTextelements.Textelements can have borders and backgrounds and are affected by layout properties likemargin,padding, andposition.The reverse can’t be said. Most of the styles
Textelements can use won’t work forViewelements, which makes perfect sense. If you’ve ever used a word processor, you know you can use different fonts for text and change the font color; that you can resize, bold, and italicize the text; and that you can apply decorations like underlines.