Skip to content

Conversation

@jspeth
Copy link
Owner

@jspeth jspeth commented Mar 24, 2022

Experiment with integrating React Native Navigation into a hybrid app that already has its own root view controller.

  • Updates the playground app delegate to create a native view controller as its root
  • Extends ReactNativeNavigation to support bootstrapping into a provided window other than main
  • Bootstraps into a UIWindow instance which is initially unused
  • The native view controller can then access the window's root view controller to present it when desired

This is done entirely in the playground without any library changes. So this approach could be used in any app without requiring a fork of the library.

Simulator.Screen.Recording.-.iPhone.X.-.2022-03-23.at.19.06.15.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants