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 have a use case whereby a SwipeableViews component is initially rendered with animateTransitions=true and a given index. Later on, the component is re-rendered with a change of index and animateTransitions=false at the same time. The problem is that this still result in a animated transition.
From what I can see, this is due to the fact that the new transform (due to new index) is handled in UNSAFE_componentWillReceiveProps/setIndexCurrent, while animateTransitions=false is handled in render, which occurs after.
The text was updated successfully, but these errors were encountered:
I have a use case whereby a
SwipeableViews
component is initially rendered withanimateTransitions=true
and a given index. Later on, the component is re-rendered with a change ofindex
andanimateTransitions=false
at the same time. The problem is that this still result in a animated transition.From what I can see, this is due to the fact that the new transform (due to new index) is handled in
UNSAFE_componentWillReceiveProps
/setIndexCurrent
, whileanimateTransitions=false
is handled inrender
, which occurs after.The text was updated successfully, but these errors were encountered: