Open edgarroman opened 4 years ago
Same issue here. I just ended up mapping the tab indices to components and lazy loading them the old fashioned way.
EDIT: Discovered when you provide a height for the tab container, this will fix the issue.
Confirmed that if you add a fixed height to the tab container, the issue goes away. However a height like '100%' will not fix the issue. So at least there is a partial workaround.
Fix for issue was provided and waiting merging.
Putting animationDuration={1} resolves the issue for me.
🐛 Bug Report
When using TabView and
shouldLoadComponent
is active, then having multiple child components will create a scenario where tabs do not switch properly when clicked on. The tabs bounce between various tabs.Note, this bounce does not occur when
showLoadComponent
is not enabled. Also, swiping tab pane works fine.To Reproduce
Steps to reproduce the behavior:
See example.
Expected behavior
Tab pane should switch without bouncing.
Link to runnable example or repository (highly encouraged)
https://snack.expo.io/@romandc/994748
UI Kitten and Eva version
Environment information