diff --git a/patches/react-native-tab-view+3.5.2.patch b/patches/react-native-tab-view+3.5.2+001+initial.patch similarity index 100% rename from patches/react-native-tab-view+3.5.2.patch rename to patches/react-native-tab-view+3.5.2+001+initial.patch 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 new file mode 100644 index 000000000000..1f42ef2885b0 --- /dev/null +++ b/patches/react-native-tab-view+3.5.2+002+fixZeroWidthHeightPositionFlicker.patch @@ -0,0 +1,29 @@ +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;