Skip to content

How to show Android Fragment in Fabric Native Component ? Couldn't find related documentation #239

Answered by ndu-aspira
ndu-aspira asked this question in Q&A
Discussion options

You must be logged in to vote

After a lot of trying, I managed to make it work. There're 2 part of changes need te be made in my case.

  • do not use ViewManagerDelegate, stick with receiveCommand.
  • when manuallyLayoutChildren you need to specify the right and bottom your self.

attaching part of my view manager for reference.

ReactModule(name = GISMapViewManager.REACT_CLASS)
public class GISMapViewManager extends ViewGroupManager<FrameLayout> implements ReactContextProvider, CampsiteGisMapManagerInterface<FrameLayout> {

    private static final String TAG = "GISMapViewManager";

    public static final String REACT_CLASS = "CampsiteGisMap";
    public final int COMMAND_CREATE = 110;

    private final ReactApplicationCo…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@cortinico
Comment options

@Vadko
Comment options

@kevindice
Comment options

@ndu-aspira
Comment options

Answer selected by ndu-aspira
@kevindice
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants