How can one get support fragment manager from ThemedReactContext ? #21194
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
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 insidereceiveCommand
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 increateViewInstance
. DoingfooThemedReactContext.getCurrentActivity()
yields the deprecatedandroid.app.FragmentManager
. How do I getandroid.support.v4.app.FragmentManager
instead in my view manager?The text was updated successfully, but these errors were encountered: