react-navigation / react-navigation.github.io

Home of the documentation and other miscellanea
https://reactnavigation.org/
MIT License
312 stars 1.89k forks source link

Platform dependent navigation #437

Open bluelinecoding opened 5 years ago

bluelinecoding commented 5 years ago

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

brentvatne commented 5 years ago

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