来自 Ex Navigation 的堆栈导航:无法进行导航

StackNavigation from ExNavigation : unbale to do navigation

我正在使用来自@exponent/ex-navigation 库的 StackNavigation。一切正常。但是 push() 或 pop() 对任何动画都不起作用。我试过为 same

设置以下内容
<StackNavigation
    defaultRouteConfig={{
        navigationBar: {
            backgroundColor: Colors.appThemeColor,
            tintColor: 'whitesmoke',
        }
    }}
    configScene={ExNavigator.SceneConfigs.FloatFromRight}
    initialRoute={Router.getRoute('locator')} />

 configScene={ExNavigator.SceneConfigs.FloatFromRight} was not able to render scene with animation.

如果我遗漏了什么,请告诉我。

我已经解决了,是在错误的地方设置了动画。将其设置为具有所需导航样式的场景

static route = {
 styles: NavigationStyles.FloatHorizontal,
}