Skip to content

On starting an Activity in a custom Native Module, How to get the result back? #3334

@lalith26

Description

@lalith26

Hello

I have exposed a Native Module which starts an activity using an Intent. But how to get the result from the activity. I understand that startActivityForResult() won't work because the caller is not an Activity or a Fragment.

I checked the github repo. We can't even pass the Callback to the Activity using a Bundle because it does not implement Serializable or Parcelable.

Can you please explain how to solve this problem?

Thanks
Lalith

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions