Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

Creating new stack navigator on top of a stack navigator

$
0
0

In iOS terms, I want to present UINavigationController B on top of UINavigationController A, for instance

  1. User click a button from Home which starts a flow by presenting UINavigationController B (a new stack)
  2. Dismissing this UINavigationController B will remove the presented stack and brings the user back to Home

and the code looks something like this

let navController = UINavigationController(rootViewController: destination)source.present(navController, animated: animated, completion: completion)source        -> UINavigationController AnavController -> UINavigationController B

How do I achieve this in React Native using React Navigation?


Viewing all articles
Browse latest Browse all 16750

Trending Articles