mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Setting bridge up for sharing: allowing native modules to register after init
Reviewed By: javache Differential Revision: D4945784 fbshipit-source-id: 80e7236e9ccd5d5c9a7fba7c96b98fc38b43a2fc
This commit is contained in:
1 parent
1ae54b5108
commit
5c5410459e
13 files changed
+217
-67
No files matched your search
@@ -68,6 +68,12 @@ public interface CatalystInstance
|
||||
<T extends NativeModule> T getNativeModule(Class<T> nativeModuleInterface);
|
||||
Collection<NativeModule> getNativeModules();
|
||||
|
||||
/**
|
||||
* This method permits a CatalystInstance to extend the known
|
||||
* Native modules. This provided registry contains only the new modules to load.
|
||||
*/
|
||||
void extendNativeModules(NativeModuleRegistry modules);
|
||||
|
||||
/**
|
||||
* Adds a idle listener for this Catalyst instance. The listener will receive notifications
|
||||
* whenever the bridge transitions from idle to busy and vice-versa, where the busy state is
|
||||
|
||||
Reference in new issue
Block a user