Skip to content

Commit e2b62bc

Browse files
Gianni Moschinimeta-codesync[bot]
authored andcommitted
fix code snippet text container in AnsiHiglight (#54360)
Summary: Pull Request resolved: #54360 ## Changelog: [General] [Fixed] - Fixing an issue with the error LogBox formatting on windows causing text to wrap Reviewed By: rickhanlonii, yannickl Differential Revision: D76845667 fbshipit-source-id: 4b1ce705396f9818cbe9be80d521478b5eba632b
1 parent 025e0e4 commit e2b62bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

packages/react-native/Libraries/LogBox/UI/AnsiHighlight.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export default function Ansi({
8787
<View style={styles.container}>
8888
{parsedLines.map((items, i) => (
8989
<View style={styles.line} key={i}>
90-
<Text>
90+
<Text style={styles.text}>
9191
{items.map((bundle, key) => {
9292
const textStyle =
9393
bundle.fg && COLORS[bundle.fg]
@@ -122,4 +122,7 @@ const styles = StyleSheet.create({
122122
line: {
123123
flexDirection: 'row',
124124
},
125+
text: {
126+
flexGrow: 1,
127+
},
125128
});

0 commit comments

Comments
 (0)