react-native-tab-view+3.5.2.patch 751 B

12345678910111213
  1. diff --git a/node_modules/react-native-tab-view/src/TabBar.tsx b/node_modules/react-native-tab-view/src/TabBar.tsx
  2. index e8d0b4c..cd5a424 100644
  3. --- a/node_modules/react-native-tab-view/src/TabBar.tsx
  4. +++ b/node_modules/react-native-tab-view/src/TabBar.tsx
  5. @@ -405,6 +405,8 @@ export function TabBar<T extends Route>({
  6. // When we have measured widths for all of the tabs, we should updates the state
  7. // We avoid doing separate setState for each layout since it triggers multiple renders and slows down app
  8. setTabWidths({ ...measuredTabWidths.current });
  9. + } else {
  10. + setTabWidths({ ...measuredTabWidths?.current });
  11. }
  12. }
  13. : undefined,