How to use registerForActivityResult with TurboModules? #116
Unanswered
BraveEvidence
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use
registerForActivityResult
.registerForActivityResult
can only be used in MainActivity. I needregisterForActivityResult
for myintent
to pick images.Here is the complete code sample
The issue is I can't call my
MainActivity
in myModule
as theModule
file is not part of the main android folder but a separate folder calledRTNImagePicker
in my caseI get below error if I try to refer MainActivity in my module
I cannot add it as dependency on module as well as it results in circular dependency
So how do I exactly use this
Beta Was this translation helpful? Give feedback.
All reactions