Pass React Native Promise between activities on Android [Kotlin] #17996
Labels
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
FYI: I am new to Android world.
What I am trying to do ?
I am using Native Modules for React Native Android. I am using react native promises instead of callbacks to do some async task. Simple and Easy.
In Detail
I have a native module called "ReactNativeBridge" which has bunch of methods which are marked with
@ReactMethod
so they can be accessed from React Native side.As you can see I want to start a new Android activity in each of these methods and pass the Promise as an argument to those activities, through Intents. But I am unable to pass the promise through Intents since not all data types can be passed through Intents. I checked the type of promise, it is an Interface.
This is how a Promise Interface looks,
I know we cannot pass Interface since it is an abstract thing (like a blueprint).
** If your answer is "extend interface to Serializable" then remember I cannot modify Promise Interface. (It's a Facebook thing)
Questions
The text was updated successfully, but these errors were encountered: