React-native-navigation: Retrieving react native bridge in v2

Created on 9 Apr 2018  ·  2Comments  ·  Source: wix/react-native-navigation

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
iOS v2

Most helpful comment

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];

All 2 comments

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];

That was fast, thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bdrobinson picture bdrobinson  ·  3Comments

switchtrue picture switchtrue  ·  3Comments

charlesluo2014 picture charlesluo2014  ·  3Comments

no23reason picture no23reason  ·  3Comments

zhanguangao picture zhanguangao  ·  3Comments