January 2019
Intermediate to advanced
592 pages
14h 30m
English
In this recipe, we covered rendering a React Native app within a native iOS app via two different methods. The first method replaces the application's main UIViewController instance with the React Native app, referred to in the native code as RCTRootView. This was accomplished in the openRNAppButtonPressed method. The second and slightly more involved method is rendering the React Native app inline with the native app. This was accomplish by creating a container view that links to a different UIViewController instance. In this case, we replaced the contents of embedViewController with our RCTRootView instance. This is what happens when the openRNAppEmbeddedButtonPressed method is fired.
Read now
Unlock full access