mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-03 22:48:25 +08:00
Expose way for native modules to modify JSC context
Reviewed By: svcscm Differential Revision: D2933197 fb-gh-sync-id: 32eb943ab341804343bbcadd29f0377fccf75de6 shipit-source-id: 32eb943ab341804343bbcadd29f0377fccf75de6
This commit is contained in:
committed by
facebook-github-bot-1
parent
46a8f1d8e0
commit
e5ba46c30d
@@ -59,6 +59,15 @@ public interface NativeModule {
|
||||
*/
|
||||
boolean canOverrideExistingModule();
|
||||
|
||||
/**
|
||||
* Called on the JS thread after a ReactBridge has been created. This is useful for native modules
|
||||
* that need to do any setup before the JS bundle has been loaded. An example of this would be
|
||||
* installing custom functionality into the JavaScriptCore context.
|
||||
*
|
||||
* @param bridge the ReactBridge instance that has just been created
|
||||
*/
|
||||
void onReactBridgeInitialized(ReactBridge bridge);
|
||||
|
||||
/**
|
||||
* Called before {CatalystInstance#onHostDestroy}
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user