Brownfield Navigation between Native Android Activities & React Native

287 Views Asked by At

I anticipate that I may need to jump from an Android Activity and back to the RN framework.

What are the best options available?

What is the best/correct way to architect a mixed/hybrid Android application currently?

Thanks for all the help! (Also I have searched, however because there are so many overlapping search terms, it often comes up with just simple RN navigation solutions)

2

There are 2 best solutions below

3
On BEST ANSWER

React-native-navigation is the best choice at this time even though it still has some bugs. It helps you manage tabs, navigation screens,...

0
On

At this current time, React Native Navigation does not support brownfield.

In doing some research (not part of WIX), it seems AppRegister.registerComponent() + react-navigation + react-native-modules and their callbacks are the only way to do this.

The owners of this repo have stated multiple times in issues that they do not support this functionality - see https://github.com/wix/react-native-navigation/issues/1234#issuecomment-431666444. It 'works' but only as a modal - not on any exisiting RCT Views. It's pretty easy to use any JS based navigation and hook it up manually yourself with hooks from native modules.