Few.swift icon indicating copy to clipboard operation
Few.swift copied to clipboard

Navigation Component

Open ghost opened this issue 10 years ago • 5 comments

It would be great if we could wrap UINavigationController in an Navigator(Navigation Component). Not sure how what the api would be.

ghost avatar Mar 18 '15 15:03 ghost

I'm really curious to see how React Native does this.

I've (obviously) been pretty Mac-centric where I think something like this is less necessary. But on iOS it'd be really nice.

joshaber avatar Mar 20 '15 02:03 joshaber

Pulled from the example in http://techjaw.com/2015/02/23/pre-release-react-native-talk-at-facebooks-london-office-react-js-user-group/:

untitled 3 untitled 2

joshaber avatar Mar 20 '15 14:03 joshaber

Oh, it's a bit like how UINavigationController works normally. The only problem is that we don't have something like props, this is also very hard to implement right because of types. Do you have a suggestion about how we can give our sub components access to the navigator?

ghost avatar Mar 20 '15 18:03 ghost

No great ideas at the moment. A protocol could suffice though it puts the work on the user.

joshaber avatar Mar 20 '15 19:03 joshaber

Maybe a approach similar to Functional view controllers from @chriseidhof is a good match with Few.

ghost avatar Jul 10 '15 08:07 ghost