// {" "} is equivalent to <br> <Text> Hi {" "} this is a test message. </Text>
you need use {' '} as line breaks in text component, whenever you need to add line break in react native application
text = text.replace(/<brs*/?>/gi, " ")