Skip to content

anhtuank7c/reactnative-advanced

Repository files navigation

Navigate to Native from ReactNative in 5 simple steps

You can do it in just 5 simple steps

Please like, subscribe and share, comment what do you want in the next video.

Video: Navigate to Native from ReactNative in 5 simple steps

Android:

  • Create a new Activity

  • Write a Native Module

  • Register native module to MainApplication

  • Write ReactMethod which start Activity we created earlier

  • Finish current activity to go back to React Native

iOS:

  • Create a new UIViewController

  • Modify AppDelegate to use UINavigationController

  • Write native module

  • Write ReactMethod which use the navigator to pushViewController

  • Pop navigator to go back to React Native

Github: https://github.com/anhtuank7c/reactnative-advanced