From 2fd100f450e38d6bf047287414171fbe99585a88 Mon Sep 17 00:00:00 2001 From: Jack Nam <30609178+thienlnam@users.noreply.github.com> Date: Fri, 30 Aug 2024 10:27:55 -0700 Subject: [PATCH] Revert "IOU - Distance tab flickering to manual & back to distance every time when add destination" --- ...02+fixZeroWidthHeightPositionFlicker.patch | 29 ------------------- ...atch => react-native-tab-view+3.5.2.patch} | 0 2 files changed, 29 deletions(-) delete mode 100644 patches/react-native-tab-view+3.5.2+002+fixZeroWidthHeightPositionFlicker.patch rename patches/{react-native-tab-view+3.5.2+001+initial.patch => react-native-tab-view+3.5.2.patch} (100%) diff --git a/patches/react-native-tab-view+3.5.2+002+fixZeroWidthHeightPositionFlicker.patch b/patches/react-native-tab-view+3.5.2+002+fixZeroWidthHeightPositionFlicker.patch deleted file mode 100644 index 1f42ef2885b0b..0000000000000 --- a/patches/react-native-tab-view+3.5.2+002+fixZeroWidthHeightPositionFlicker.patch +++ /dev/null @@ -1,29 +0,0 @@ -diff --git a/node_modules/react-native-tab-view/lib/module/TabView.js b/node_modules/react-native-tab-view/lib/module/TabView.js -index ba28170..4c607a2 100644 ---- a/node_modules/react-native-tab-view/lib/module/TabView.js -+++ b/node_modules/react-native-tab-view/lib/module/TabView.js -@@ -40,6 +40,9 @@ export function TabView(_ref) { - height, - width - } = e.nativeEvent.layout; -+ if(!!width || !!height) { -+ return; -+ } - setLayout(prevLayout => { - if (prevLayout.width === width && prevLayout.height === height) { - return prevLayout; -diff --git a/node_modules/react-native-tab-view/src/TabView.tsx b/node_modules/react-native-tab-view/src/TabView.tsx -index bb1f531..d70f9ba 100644 ---- a/node_modules/react-native-tab-view/src/TabView.tsx -+++ b/node_modules/react-native-tab-view/src/TabView.tsx -@@ -70,6 +70,10 @@ export function TabView({ - const handleLayout = (e: LayoutChangeEvent) => { - const { height, width } = e.nativeEvent.layout; - -+ if(!!width || !!height) { -+ return; -+ } -+ - setLayout((prevLayout) => { - if (prevLayout.width === width && prevLayout.height === height) { - return prevLayout; diff --git a/patches/react-native-tab-view+3.5.2+001+initial.patch b/patches/react-native-tab-view+3.5.2.patch similarity index 100% rename from patches/react-native-tab-view+3.5.2+001+initial.patch rename to patches/react-native-tab-view+3.5.2.patch