react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

How to animate topBar on every push in android. Currently is static on every screen push.

Open kamleshh-bms opened this issue 7 years ago • 6 comments

I am not able to set transaction for the sticky header for android. The animation only works when show and hide topBar.

animations: {
            setRoot: {
                waitForRender: true,
                alpha: {
                    from: 0,
                    to: 1,
                    duration: 300
                }
            },
            push: {
                topBar: {
                    x: {
                        from: 500,
                        to: 0,
                        duration: 350
                    }
                },
            }
        }

Environment

  • React Native Navigation version: 2.13.1
  • React Native version: 0.58.6
  • Platform: Android

kamleshh-bms avatar Mar 12 '19 12:03 kamleshh-bms

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

stale[bot] avatar Apr 11 '19 12:04 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Apr 18 '19 13:04 stale[bot]

Not stale. I think It is not possible. I'm facing the same problem here. It seems that topbar acts as global thing, like a single instance being shared over all screens and cannot be animated between screen transitions in push commands. The documentation should be clearer about that.

david-laurentino avatar Dec 01 '19 03:12 david-laurentino

I'm experiencing the same issue. TopBar is not animating.

SteffenC avatar Dec 05 '19 09:12 SteffenC

The solution was to replace react-native-navigation with react-navigation v4. This allows much greater customization options and provides animations smooth as butter. The documentation is great.

david-laurentino avatar Dec 05 '19 12:12 david-laurentino

Not stale! It is very usefull fiature for consistent transitions between the screens with different topBars Do you have any desicions of thes problem?

vovka-s avatar Jan 16 '20 16:01 vovka-s