使用NavigatorIOS配置SiteScene

时间:2017-05-18 15:29:22

标签: react-native navigator-ios

有没有办法使用NavigatorIOS配置场景转换?或者它只有一个默认的floatFromRight属性。我有,

this.props.navigator.push({
component : component,
title: 'hello',
// configuring the transition type 
 });

1 个答案:

答案 0 :(得分:-1)

您可以使用其他动画,请参阅此处:navigator configurescene

你有这些:

  • Navigator.SceneConfigs.PushFromRight“DEFAULT”
  • Navigator.SceneConfigs.FloatFromRight
  • Navigator.SceneConfigs.FloatFromLeft
  • Navigator.SceneConfigs.FloatFromBottom
  • Navigator.SceneConfigs.FloatFromBottomAndroid
  • Navigator.SceneConfigs.FadeAndroid
  • Navigator.SceneConfigs.Horizo​​ntalSwipeJump
  • Navigator.SceneConfigs.Horizo​​ntalSwipeJumpFromRight
  • Navigator.SceneConfigs.VerticalUpSwipeJump
  • Navigator.SceneConfigs.VerticalDownSwipeJump

示例:

<Navigator
   initialRoute={{id: 'Home'}}
   renderScene={this.navigatorRenderScene}
   configureScene={(route, routeStack) =>
      Navigator.SceneConfigs.HorizontalSwipeJump
   }
/>