From 6a538e32afe1f906ad3301bbee887d299087cb83 Mon Sep 17 00:00:00 2001 From: JaeMin Kim Date: Thu, 18 Jan 2024 20:30:31 +0900 Subject: [PATCH] Patch react-native-math-view for consistent inline LaTeX height on Android and iOS (#7742) Co-authored-by: Mattermost Build --- patches/react-native-math-view+3.9.5.patch | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 patches/react-native-math-view+3.9.5.patch diff --git a/patches/react-native-math-view+3.9.5.patch b/patches/react-native-math-view+3.9.5.patch new file mode 100644 index 000000000..19ade4ffb --- /dev/null +++ b/patches/react-native-math-view+3.9.5.patch @@ -0,0 +1,14 @@ +diff --git a/node_modules/react-native-math-view/src/common.tsx b/node_modules/react-native-math-view/src/common.tsx +index a599184..4e4830a 100644 +--- a/node_modules/react-native-math-view/src/common.tsx ++++ b/node_modules/react-native-math-view/src/common.tsx +@@ -61,8 +61,7 @@ export const getPreserveAspectRatio = (alignment: string, scale: string) => `${a + export const styles = StyleSheet.create({ + container: { + //flexDirection: 'row', +- display: 'flex', +- minHeight: 35 ++ display: 'flex' + }, + contain: { + maxWidth: '100%',