react-native-tab-view+4.1.3.patch 734 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 d35c78b..cfe1e2f 100644
  3. --- a/node_modules/react-native-tab-view/src/TabBar.tsx
  4. +++ b/node_modules/react-native-tab-view/src/TabBar.tsx
  5. @@ -479,6 +479,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;