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

Retrieving react native bridge in v2

Open mahyarr opened this issue 8 years ago • 2 comments

Im trying to initialize Sentry after I run [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:launchOptions]; but to initialize, I need access to the bridge.

In v1 I was able to use [[RCCManager sharedInstance] getBridge]. How is this done now in v2?


Environment

  • React Native Navigation version: 2.0.2234
  • React Native version: 0.55.2
  • Platform(s) (iOS, Android, or both?): iOS
  • Device info (Simulator/Device? OS version? Debug/Release?): all

mahyarr avatar Apr 09 '18 18:04 mahyarr

Exposed the bridge in https://github.com/wix/react-native-navigation/commit/e3d5dad93c1d7f1b4f940f5623b89ad1363caad7 Now you should be able to get the bridge by calling [ReactNativeNavigation getBridge];

yogevbd avatar Apr 10 '18 12:04 yogevbd

That was fast, thank you very much!

mahyarr avatar Apr 10 '18 13:04 mahyarr