current position:Home>Reactnative foundation - 05 (text)

Reactnative foundation - 05 (text)

2022-01-27 03:26:32 The black cat made a strange mistake

The text must be written in Text In the label

numberOfLines: Show a few lines , Other ... hide

Text As a container , Related attribute settings of text can be inherited

letterSpacing: Text spacing

<View style={
   {color: 'red', fontSize: 30}}>
    <Text style={
   {fontSize: 30}} numberOfLines={5}>   {/*  Cannot inherit View The style of  */}
        Lorem ipsum, dolor sit amet consectetur adipisicing elit. Error
        mollitia accusantium at eum aut dolorum velit sed quis qui quos quo
        nulla sapiente, incidunt itaque? Ipsum corrupti sapiente delectus
        omnis?
     </Text>
     <Text style={
   {color: 'red', fontSize: 30, letterSpacing: 5}}>
        <Text>hello react</Text>   {/*  Inherit Text The style of  */}
        <Text>hello vue</Text>
     </Text>
</View>

copyright notice
author[The black cat made a strange mistake],Please bring the original link to reprint, thank you.
https://en.cdmana.com/2022/01/202201270326305751.html

Random recommended