-
Notifications
You must be signed in to change notification settings - Fork 25.1k
Question about Native Modules #15586
Copy link
Copy link
Closed
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: For Stack OverflowA question for Stack Overflow. Applying this label will cause issue to be closed.A question for Stack Overflow. Applying this label will cause issue to be closed.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Metadata
Metadata
Assignees
Labels
Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: For Stack OverflowA question for Stack Overflow. Applying this label will cause issue to be closed.A question for Stack Overflow. Applying this label will cause issue to be closed.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Type
Fields
Give feedbackNo fields configured for issues without a type.
According to https://facebook.github.io/react-native/docs/native-modules-android.html native android modules
extends ReactContextBaseJavaModule, Is the module singleton?If I have the following method
and
What happens exactly? is
MyModule.testMethod('C')overwritethis.promise(the module is singleton ) OR each time the new instance of module is created andpromiseis a property and isolated?