Answers for "line break mode in react native text"

4

react native break line text if too big

<View
    style={{ flexDirection: 'row' }}
> 
   <Text style={{ flexShrink: 1 }}>
       Really really long text...
   </Text>
</View>
Posted by: Guest on April-21-2020
0

insert a line break into a text component in react-native

text = text.replace(/<br\s*\/?>/gi, "\n")
Posted by: Guest on August-12-2021

Code answers related to "line break mode in react native text"

Code answers related to "Javascript"

Browse Popular Code Answers by Language