diff --git a/packages/react-native/Libraries/LogBox/UI/AnsiHighlight.js b/packages/react-native/Libraries/LogBox/UI/AnsiHighlight.js index b7163f1512f..827ff8d7c68 100644 --- a/packages/react-native/Libraries/LogBox/UI/AnsiHighlight.js +++ b/packages/react-native/Libraries/LogBox/UI/AnsiHighlight.js @@ -70,7 +70,9 @@ export default function Ansi({ /* $FlowFixMe[missing-local-annot] The type annotation(s) required by Flow's * LTI update could not be added via codemod */ const getText = (content, key) => { - if (key === 1) { + if (key === 0) { + return LRM + content; + } else if (key === 1) { // Remove the vertical bar after line numbers return content.replace(/\| $/, ' '); } else if (key === 2 && commonWhitespaceLength < Infinity) { @@ -86,7 +88,6 @@ export default function Ansi({ {parsedLines.map((items, i) => ( - {LRM} {items.map((bundle, key) => { const textStyle = bundle.fg && COLORS[bundle.fg]