How to show Android Fragment in Fabric Native Component ? Couldn't find related documentation #239
Unanswered
ndu-aspira
asked this question in
Q&A
Replies: 1 comment 7 replies
-
I've recently updated the integrating with Android Fragment guide here: @ndu-aspira |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I‘m trying to migrate my project to the new architecture. Our map component was placed in an Android Fragment and it works well on the old architecture. I tried to put the Fragment in the new Frbric Native Component following this guide https://github.com/reactwg/react-native-new-architecture/blob/main/docs/fabric-native-components.md. It gives no error but displays blank screen. I put some log in my Map fragment. The lifecycle method of the Fragment seems good ( on create, onCreateView, onStart..) all got invoked.
I also tried the simplest Fragment, ( a TextView in LinearLayout) and result is the same.
Is there any document of How to integrate Android Fragment into Fabric native component like the old one (https://reactnative.dev/docs/0.74/native-components-android#integration-with-an-android-fragment-example)
My rn version is 0.74.5
Any help is Appreciated.
My current code snippet.
js side:
Android Native Side:
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions