Presentational Component At the bottom of the file, we will create our stylesheet and assign it to the styles constant. Note that our styles are in camelCase and we do not use px or % for styling. To apply styles to our text, we need to add style = {styles. myText} property to the Text element .
How do you give Styles in React Native?
Presentational Component At the bottom of the file, we will create our stylesheet and assign it to the styles constant. Note that our styles are in camelCase and we do not use px or % for styling. To apply styles to our text, we need to add style = {styles. myText} property to the Text element .