question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Weird animation on iOS

See original GitHub issue

What 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:closed
  • Created 6 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
timomehcommented, Mar 20, 2018

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.

1reaction
hammadzzcommented, Mar 2, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found