Weird animation on iOS
See original GitHub issueWhat kind of Issue is this?
- (x) Bug Report
- () Question / Problem
- () Discussion / Feature Request
How are you using the Bottom Navigation?
- (x) I use the Bottom Navigation together with react-navigation; the Issue is not appearing when I’m using react-navigation’s TabBar instead.
- () I use the standalone version.
Expected behavior
No animation to happen when switching tabs.
Actual behavior
For some reason iOS gets an annoying animation when switching tabs. Only happens on iOS.
Additional description and resources
I was actually able to fix this deleting the following from BottomNavigation.js
LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut)
https://giphy.com/gifs/8TznS7ZN5Xek1trxO8
What did you do to find a solution?
I googled everywhere and didn’t find anything.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Been getting this really weird animation. Also the ... - Reddit
r/ios - Anyone know how I can get this problem resolved? I can.
Read more >Weird animation of UIModalPresenta… - Apple Developer
I'm working on an iPad app. The app displays a main menu via a UIModalPresentationPopover. The menu contains various text fields.
Read more >Weird slide-in app launch animation | MacRumors Forums
Ever since 15.6.1 I've been experiencing odd app launch animations. ... On iPad, switch an app to a Slide Over window that slides...
Read more >Weird animation of a Button in Stack Views in iOS 16
This certainly looks like a bug. The Text label of the button is not getting the .animation() value applied to it, but the...
Read more >SwiftUI: Fix Weird Text Animation with one line of code.
SwiftUI: Fix Weird Text Animation with one line of code. ... Integrating AppGallery Connect Crash Service in a Xamarin app for iOS.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue will be fixed in the next version, see #76.
If you’re interested in the solution: https://github.com/timomeh/react-native-material-bottom-navigation/blob/58b2b40d2b262a1118ad3a85a9f72c6c867a39ad/lib/ShiftingTab.js#L62-L70
Delaying the
LayoutAnimation
call to the next frame won’t cause other Layout changes to animate. (Or rather it will reduce the probability of glitches)This issue will be closed when #76 is merged.
If anyone else needs the fork with the fix (only works for less than 4 tabs): https://github.com/hammadzz/react-native-material-bottom-navigation