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.

native-stack animation does not fade in from the bottom on Android

See original GitHub issue

Description

When using createNativeStackNavigator, the animation is strange on Android. Specifically, the animation scale from center(zoom-out-from-center), which is not a standard OS animation.

The official README for createNativeStackNavigator says to expect the standard OS animation of fading in from the bottom.

By default the stack navigator is configured to have the familiar iOS and Android look & feel: new screens slide in from the right on iOS, fade in from the bottom on Android. On iOS, the stack navigator can also be configured to a modal style where screens slide in from the bottom.

The current animation is different from the expected behavior.

Screenshots

Steps To Reproduce

  1. Build and run the Example in this repository on Android. https://github.com/software-mansion/react-native-screens/tree/a46aaab4b594079cdce36ff0115f472f5249c506/Example
  2. Select menu the Native stack bindings for RNN
  3. Select PUSH or MODAL to cause a navigation animation.

Expected behavior

fade in animation from the bottom on Android

Actual behavior

scale-from-center(zoom-out-from-center) animation on Android

Snack or minimal code example

The Example of this repository.

https://github.com/software-mansion/react-native-screens/tree/a46aaab4b594079cdce36ff0115f472f5249c506/Example

Package versions

  • React: 16.13.1
  • React Native: 0.63.0
  • React Native Screens: 2.18.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hehex9commented, May 28, 2021

related discussion #770 , definitely need to use different animations depending on the device version 🤔️

1reaction
kacperkapusciakcommented, Mar 11, 2021

Thank you for opening the issue. I’ll investigate it and inform you if I find anything useful connected to this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

native-stack animation does not fade in from the bottom on ...
When using createNativeStackNavigator , the animation is strange on Android. Specifically, the animation scale from center(zoom-out-from-center) ...
Read more >
Stack.Navigator fade-transition between Stack.Screens in ...
The simplest way to achieve fade effect: const forFade = ({ current }) => ({ cardStyle: { opacity: current.progress, }, });.
Read more >
Stack Navigator | React Navigation
Stack Navigator provides a way for your app to transition between screens where each new screen is placed on top of a stack....
Read more >
#2 Stack Navigator Transitions | React Navigation 5 - YouTube
We'll learn How to add Transitions and Animations to react Navigation Stack Navigator New To React Native?React Native Foundation + Firebase ...
Read more >
Change React Native screen animation direction ... - ITNEXT
In this post we'll check how to produce bottom-to-top or ... On Android you can still see that other screens within Modal stack...
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