MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _getTransitionId

Function _getTransitionId

packages/core/ui/frame/index.ios.ts:724–745  ·  view source on GitHub ↗
(nativeTransition: UIViewAnimationTransition, transitionType: string)

Source from the content-addressed store, hash-verified

722}
723
724function _getTransitionId(nativeTransition: UIViewAnimationTransition, transitionType: string): string {
725 let name;
726 switch (nativeTransition) {
727 case UIViewAnimationTransition.CurlDown:
728 name = 'CurlDown';
729 break;
730 case UIViewAnimationTransition.CurlUp:
731 name = 'CurlUp';
732 break;
733 case UIViewAnimationTransition.FlipFromLeft:
734 name = 'FlipFromLeft';
735 break;
736 case UIViewAnimationTransition.FlipFromRight:
737 name = 'FlipFromRight';
738 break;
739 case UIViewAnimationTransition.None:
740 name = 'None';
741 break;
742 }
743
744 return `${name} ${transitionType}`;
745}
746
747function _getNativeTransition(navigationTransition: NavigationTransition, push: boolean, direction: CoreTypes.LayoutDirectionType): UIViewAnimationTransition {
748 if (navigationTransition && navigationTransition.name) {

Callers 1

animateWithDurationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected