wix / react-native-navigation

A complete native navigation solution for React Native
https://wix.github.io/react-native-navigation/
MIT License
13.04k stars 2.67k forks source link

Android - topBar/content animation push+pop timing inconistency #5741

Open kyle-ssg opened 4 years ago

kyle-ssg commented 4 years ago

Issue Description

Given the following code, the topbar and content are not aligned. Also, for some reason you have to always explicitly set topbar enabled:true for it to animate, content you don't.

Steps to Reproduce / Code Snippets / Screenshots

Given the following code, the topbar and content are not aligned.

   push: {
                enabled: true,
                topBar: {
                    enabled:true,
                    x: {
                        from: fromX,
                        to: toX,
                        duration: duration,
                        interpolation: 'decelerate',
                    },
                    alpha: {
                        from: fromFade,
                        to: toFade,
                        duration: duration,
                        interpolation: 'decelerate',
                    },
                },
                content: {
                    x: {
                        from: fromX,
                        to: toX,
                        duration: duration,
                        interpolation: 'decelerate',
                    },
                    alpha: {
                        from: fromFade,
                        to: toFade,
                        duration: duration,
                        interpolation: 'decelerate',
                    },
                },
            },

Push image

Pop image


Environment

manuhook commented 4 years ago

Hi @kyle-ssg did you manage to have a topbar animation on every push without changing topbar visibility ? thanks 🙏