Answers for "react native text wrap 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
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