Answers for "react native wrap text to next line"

4

react native text wrap

<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 "Javascript"

Browse Popular Code Answers by Language