Is it possible to embed a React-Native view as a subordinate in a native android project?

I am integrating react-native into my pure java android project. I just want some item in my native ListView to display a react view. I don't want to modify the whole ListView to be react-native.

Is there a way to do this? I tried to add the ReactRootView as a subhead to another view, it is empty.

+3


source to share


1 answer


It turns out my activity went wrong. RN requires lib 23.0.1 support, but ConstraintLayout is incompatible with lib 23.0.1 support. Just use any other layout for the root Activity view.



0


source







All Articles