You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/AiResponse.tsx
+30-2Lines changed: 30 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,7 @@ import {
6
6
Image,
7
7
Linking,
8
8
Pressable,
9
+
StyleSheet,
9
10
Text,
10
11
View,
11
12
}from'react-native';
@@ -74,10 +75,37 @@ function AiTextResponse({text}: AiTextResponseProps): JSX.Element {
74
75
content={node.content}/>
75
76
)
76
77
},
77
-
}
78
+
}
79
+
80
+
conststyles=StyleSheet.create({
81
+
listItem: {
82
+
// Removing these because they break the rendering of list items
83
+
// flex: 1,
84
+
// flexWrap: 'wrap',
85
+
},
86
+
paragraph: {
87
+
marginTop: 0,// Removing the 10px here because they are being applied to list items too
88
+
marginBottom: 0,// Removing the 10px here because they are being applied to list items too
89
+
flexWrap: 'wrap',
90
+
flexDirection: 'row',
91
+
alignItems: 'flex-start',
92
+
justifyContent: 'flex-start',
93
+
},
94
+
listUnorderedItemIcon: {
95
+
marginLeft: 10,
96
+
marginRight: 10,
97
+
lineHeight: 20,// This is Platform.selected only on IOS/Android in https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/styles.js
98
+
},
99
+
listOrderedItemIcon: {
100
+
marginLeft: 10,
101
+
marginRight: 10,
102
+
lineHeight: 30,// This is Platform.selected only on IOS/Android in https://github.com/mientjan/react-native-markdown-renderer/blob/master/src/lib/styles.js
0 commit comments