Answers for "react native text auto line break"

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
6

how to place a line break in react native

you need use {'\n'} as line breaks in text component, whenever you need to add line break in react native application
Posted by: Guest on July-22-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 "react native text auto line break"

Code answers related to "Javascript"

Browse Popular Code Answers by Language