mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00

* cache page on forward navigation Still some failing navigation tests * Current page is kept alive when navigating forward Refactoring code and removing all hacks and flags Remove one module circular reference * Disable Page recycling because when there is transition between pages the nativeView stays animated (e.g. when transition is Fade the hidden page nativeView stays with Alpha 0) Disable recycling if there is native anitmation * Fix failing tests on ios & android API17 Fix wrong urls in http tests Made some timer tests async * Animations are not stored in BackstackEntry instead of Fragment because fragments could die (activity die) and recreated and we lose animations. * Fix android crash when activity is recreated. Refactoring transitionListener.
36 lines
956 B
TypeScript
36 lines
956 B
TypeScript
/**
|
|
* @module "ui/transition"
|
|
*/ /** */
|
|
|
|
import { NavigationTransition } from "../frame";
|
|
|
|
//@private
|
|
/**
|
|
* Waits for animation/transition end on the given fragments.
|
|
* @param newFragment
|
|
* @param currentFragment
|
|
*/
|
|
export function _waitForAnimationEnd(newFragment, currentFragment): void;
|
|
/**
|
|
* @private
|
|
*/
|
|
export function _setAndroidFragmentTransitions(
|
|
animated: boolean,
|
|
navigationTransition: NavigationTransition,
|
|
currentFragment: any,
|
|
newFragment: any,
|
|
fragmentTransaction: any,
|
|
manager: any /* android.app.FragmentManager */): void;
|
|
/**
|
|
* @private
|
|
*/
|
|
export function _onFragmentCreateAnimator(fragment: any, nextAnim: number): any;
|
|
/**
|
|
* @private
|
|
*/
|
|
export function _updateAnimationFragment(newFragment: any): void;
|
|
/**
|
|
* @private
|
|
*/
|
|
export function _createIOSAnimatedTransitioning(navigationTransition: NavigationTransition, nativeCurve: any, operation: number, fromVC: any, toVC: any): any;
|
|
//@endprivate
|