I'm trying to find a good way to manage both iPhone and iPad navigation which scales as app gets bigger. Some requirements potentially being if iPhone push next screen, but on iPad present as a formsheet. Before I would normally achieve this using the Coordinator pattern, which basically allows screens to delegate the action back to a container. I would love to do something similar with React Navigation but struggling to find a way that feels right and not hacked together.
we should add this to limitations section of documentation, we don't have very good support for ipad idioms in react-navigation right now sadly. you may be better served by using react-native-navigation
Hi,
I'm trying to find a good way to manage both iPhone and iPad navigation which scales as app gets bigger. Some requirements potentially being if iPhone push next screen, but on iPad present as a formsheet. Before I would normally achieve this using the Coordinator pattern, which basically allows screens to delegate the action back to a container. I would love to do something similar with React Navigation but struggling to find a way that feels right and not hacked together.
https://myguysi.com/navigation-coordinators-in-react-native (someone else's attempt to achieve similar)
https://www.hackingwithswift.com/articles/71/how-to-use-the-coordinator-pattern-in-ios-apps