You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.
Is there a way to animate it so that the when a new view is pushed into the controller, the active view doesn't slide to the left to let the new one come in?
And when a view is popped, it will slide to the right and the previous one will be behind it instead of sliding from the left.
Right now the animation looks like a carousel while UINavigationController doesn't really look like a carousel.
Regards, Alex
The text was updated successfully, but these errors were encountered:
If you're looking to mimic the exact transition of UINavigationController, you can pass a function as the transition option and do whatever you'd like:
navigationController.pushView(<MyView/>,{transition(prevElement,nextElement,done){// Do some sort of animation on the viewsprevElement.style.transform='translate(100%, 0)';nextElement.style.transform='translate(0, 0)';// Tell the navigationController when the animation is completesetTimeout(done,500);}});
Is there a way to animate it so that the when a new view is pushed into the controller, the active view doesn't slide to the left to let the new one come in?
And when a view is popped, it will slide to the right and the previous one will be behind it instead of sliding from the left.
Right now the animation looks like a carousel while UINavigationController doesn't really look like a carousel.
Regards, Alex
The text was updated successfully, but these errors were encountered: