小编Odu*_*buc的帖子

如何在 NativeScript 中使用页面转换

我正在尝试使用routerExtensions中的页面转换的页面转换但没有成功。(2.3.0)

我在js中尝试过:

this.routerExtensions.navigate(
    [
        'myPage'
    ], 
    {
        animated: true, 
        transition: 
        {
            name: 'flip', 
            duration: 2000, 
            curve: 'linear'
        }
    } 
);
Run Code Online (Sandbox Code Playgroud)

我在 xml 中尝试过:

<Button text="Goto myPage" [nsRouterLink]="['/myPage']" pageTransition="flip"></Button>
Run Code Online (Sandbox Code Playgroud)

当我导航到“myPage”但没有动画时,这两种方法都有效。我是否需要更改设置才能“启用”动画,或者我是否遗漏了一些明显的东西?

angular2-nativescript

5
推荐指数
2
解决办法
5069
查看次数

标签 统计

angular2-nativescript ×1