Answers for "insert a line break into a text component in react-native"

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 "insert a line break into a text component in react-native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language