native-navigation icon indicating copy to clipboard operation
native-navigation copied to clipboard

how to register a native view

Open vincent1988 opened this issue 8 years ago • 2 comments

my app was a native app。 I need rn view -> native view ,sometime native view -> rn view. so, how to register a native view to nav?

vincent1988 avatar Apr 07 '17 01:04 vincent1988

same issue: +1

Can we have an example for this?

neha-gehani avatar Apr 12 '17 07:04 neha-gehani

So what we are doing at Instructure is (I can't speak for Android, only iOS): handle all routing (url based, with a router and whatnot), in Swift. The Swift router in the app just vends UIViewControllers based on urls - it instantiates ReactViewControllers then pushes and presents them itself. I think this is what the initial purpose I believe was of this project, being used in "brown field" apps. (You should watch the video about brown field apps, where Airbnb announced the open sourcing of this project, might help explain). Ideally, this project would eventually move to one where you can write the entire thing in JS, but it's not there (yet).

benkraus avatar Apr 20 '17 04:04 benkraus