堆栈之间的循环导航 - React Native

时间:2018-01-23 08:22:04

标签: react-native react-navigation stack-navigator

我想知道如何在一个周期内stackNavigators之间使用React导航,使用React导航在React Native中进行导航(stacksNavigators互相呼叫)。
我正在使用React Native 0.44.3,React 16.0.0-alpha.6

export let AStack = StackNavigator({
  A: {
    screen: ecranA,
    navigationOptions: {
      title: 'Settings',
    },
  },

  Cstack: {
    screen: CStack,
    navigationOptions: {
      title: 'Settings',
    },
  },

});

export let BStack = StackNavigator({
  B: {
    screen: ecranB,
    navigationOptions: {
      title: 'Settings',
    },
  },

  Astack: {
    screen: AStack,
    navigationOptions: {
      title: 'Settings',
    },
  },

});

export let CStack = StackNavigator({
  C: {
    screen: ecranC,
    navigationOptions: {
      title: 'Settings',
    },
  },

  Bstack: {
    screen: BStack,
    navigationOptions: {
      title: 'Settings',
    },
  },

});

0 个答案:

没有答案