0
我的文檔有關導航嵌套導航https://reactnavigation.org/docs/navigators/navigation-actions#SetParams陣營本土:如何瀏覽嵌套導航儀(由組件包)
const navigateAction = NavigationActions.navigate({
routeName: 'Profile',
params: {},
action: NavigationActions.navigate({ routeName: 'SubProfileRoute'})
})
this.props.navigation.dispatch(navigateAction)
然而,我的嵌套導航SubProfileRoute
由組件包裹閱讀
module.exports = class _ extends React.Component { ... }
不
module.exports = StackNavigator({})
那麼我該怎麼做呢?