使用反应导航打开全屏模式

时间:2019-06-11 00:13:39

标签: javascript react-navigation

如何添加一个新视图,该视图在TabNavigator顶部为mode: 'modal'

这是我的AppStack

/** App stack is the main application. Not the loading screen. Not auth. The main App. */
const AppStack = createStackNavigator({
  Tabs: TabNavigator,
  /* any other route you want to render above the tab bar */
  WorkoutOverview: WorkoutOverviewScreen,
  WorkoutContainer: WorkoutContainerScreen,
  WorkoutComplete: WorkoutCompleteContainer,
  Questionnaire: QuestionnareScreen,
})

如何添加显示为模式的WorkoutPaused视图?它是从WorkoutContainer (card) -> WorkoutPaused (modal)

导航的

我已经在https://reactnavigation.org/docs/en/modal.html文档中进行了查看,但不了解如何使用带有TabNavigator的RootStack来构造它。

0 个答案:

没有答案