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

Added the ability to initialize module with your own bridge

Open lukebrandonfarrell opened this issue 3 years ago • 0 comments

Summary

In our use-case we already had a React Native bridge initialised. Our app is built with React Native but integrated a native only library, one of the actions from this library was intended to open one of our existing pages in React Native, hence this implementation. This use-case seems as if it would be useful for others, it does not change existing behaviour.

This solves the problem of not being able to init a module using your own bridge instance.

Todo

  • [x] Objective-C Implementation
[[ReactNativeViewController alloc] initWithModuleName:@"BillingPlansScreen" withBridge:bridge];
  • [ ] Swift Implementation
  • [ ] Java Implementation
  • [ ] Kotlin Implementation

I'll work on the remaining implementations over next week or two, just wanted to get a sense of what others think about this feature.

lukebrandonfarrell avatar Mar 22 '21 13:03 lukebrandonfarrell