You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a custom tab component and I got a strange width behavior on IOS (Android seems to be fine). Every time I use Animated to change the current tab, the previous one loses a bit of width. I tried a lot of implementations, and all of them got the same result... The strange fact is: if I use setValue() instead of Animated.timing, the bug won't occur.
PS: I decided to create this custom tab 'cause the existing one use ScrollView to handle the 'swipe gesture'(dragging to change tab), and I use a FlatList at the tab content... This was causing a lot of onEndReached calls... see satya164/react-native-tab-view#501
I created a custom tab component and I got a strange width behavior on
IOS
(Android seems to be fine). Every time I useAnimated
to change the current tab, the previous one loses a bit of width. I tried a lot of implementations, and all of them got the same result... The strange fact is: if I usesetValue()
instead ofAnimated.timing
, the bug won't occur.PS: I decided to create this custom tab 'cause the existing one use
ScrollView
to handle the 'swipe gesture'(dragging to change tab), and I use aFlatList
at the tab content... This was causing a lot ofonEndReached
calls... see satya164/react-native-tab-view#501Demo
Environment
Steps to Reproduce
See https://snack.expo.io/rksdq1qCf
Expected Behavior
Don't change tab
width
whenever I change the current tab.Actual Behavior
Every time I change the tab, the previous one lost some
width
, overriding my styleThe text was updated successfully, but these errors were encountered: