React-native-paper: Remove animation for BottomNavigation

Created on 28 Aug 2019  路  10Comments  路  Source: callstack/react-native-paper

Hi, is it possible to disable animation for BottomNavigation when switching between the tabs?

Stale question

All 10 comments

Try playing with shifting prop. Maybe it is that what you mean.
From docs:

Whether the shifting style is used, the active tab appears wider and the inactive tabs won't have a label. By default, this is true when you have more than 3 tabs.

My bad, I wasn't clear. When I tapped on any of the bottom tabs, there would be a transition animation as the screen changes. This seems to introduce lag between page changes and renders some momentary stray shadows near my app bar as shown in the video below. The issue is happening exclusively on Android.

Video illustrating lag

Snack: https://snack.expo.io/@chuabingquan/lag

These shadows bug is related to a bug in Android 9 in react-native. But I cannot reproduce a lag. To support animation disabling we need to add a prop. It will resolve shadows issue but I'm not sure about the lag issue. Did you try the code on a real device?

Did you try to test on an android device? The issue seems to be exclusive to android only. I鈥檝e tried it on both an emulator and an actual device but still got some lag that鈥檚 similar to this issue

Yes, I tested on a high-end Android device. Maybe it occurs on weaker ones.

I've tested it on a flagship android device and there's still a latency of about a second. I'm not an android user, perhaps I'm not used to the animation. However, is there a workaround for the shadow bug you mentioned with react native? A prop to disable animation seems practical.

+1

+1

Hello 馃憢, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

Any updates on this? I'm running on a Note 10+ and there's a noticeable delay.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kpervin picture kpervin  路  3Comments

satya164 picture satya164  路  4Comments

scottybo picture scottybo  路  3Comments

sm2017 picture sm2017  路  4Comments

zxccvvv picture zxccvvv  路  4Comments