how to line break in string in reactjs code example Example: line break in react This should do it: <Text> Hi~{"\n"} this is a test message. </Text>