Closed

Description
I'm writing a custom native android library that exposes a support fragment for display. I created a simple view manager on the android side of react in which I return a placeholder layout in createViewInstance
and later intend to add the library fragment inside receiveCommand
on user action from the react side. However in order to add the fragment to the aforementioned container I cannot get the support fragment manager from the ThemedReactContext obj that I capture in createViewInstance
. Doing fooThemedReactContext.getCurrentActivity()
yields the deprecated android.app.FragmentManager
. How do I get android.support.v4.app.FragmentManager
instead in my view manager?