FrankenStein
FrankenStein

Reputation: 369

react-native-navigation | Setting initial screen without putting it as tab?

I want to set initial screen on my react native app, but without putting it as a tab.

I mean I want to be able to reach the navigator.push outside a screen, something like this.

Navigation.startTabBasedApp({
  tabs: [
    screen: 'Signup'
  ]
})

Navigator.push({
  screen: 'Landing',
})

Upvotes: 1

Views: 1254

Answers (1)

temakozyrev
temakozyrev

Reputation: 372

See this doc https://wix.github.io/react-native-navigation/#/top-level-api

You need to use Navigation.startSingleScreenApp. Next, if u need open tab bar, just call Navigation. startTabBasedApp from anywhere in your application.

https://wix.github.io/react-native-navigation/#/screen-api

Also, you can try resetTo(params)

Upvotes: 3

Related Questions