React-native-tab-view: `animationEnabled` option not working in 2.0.1

Created on 6 Mar 2019  Â·  8Comments  Â·  Source: satya164/react-native-tab-view


Current behaviour

Expected behaviour

Code sample

Screenshots (if applicable)

What have you tried

Your Environment

| software | version
| ---------------------------- | -------
| ios or android |
| react-native |
| react-native-tab-view |2.0.1
| react-native-gesture-handler |
| react-native-reanimated |
| node |
| npm or yarn |

Most helpful comment

animationEnabled was a useful prop, will great if you recover it

All 8 comments

@wuchangming It was removed in 2.0.1 version. See other breaking changes here

@dsznajder it’s there any way to disable the animation between the switch of the Tabs?

@wuchangming I would go for downgrade of a module and lock it to some previous version. As you can see in release changes, this library will keep current behaviour with animating tabs.

@wuchangming consider migrating to a different library if you don't want animations.

animationEnabled was a useful prop, will great if you recover it

@satya164 Would you accept a PR that re-enables animationEnabled?

Context: I am dynamically adding/removing tabs in some conditions (while preserving the active tab). The tabview has an animation if the new index of the active tab is different from the old index of that particular tab (e.g if I add more tabs before the previously active tab). This looks a bit weird to the user so I would like to get rid of it.

I could remove animation with timingConfigprops:
timingConfig={{ duration: 1, }}

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chen504554911 picture chen504554911  Â·  3Comments

itzsaga picture itzsaga  Â·  3Comments

f6m6 picture f6m6  Â·  3Comments

hyochan35 picture hyochan35  Â·  3Comments

ashusdn picture ashusdn  Â·  4Comments