mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
clean up
Reviewed By: andreicoman11 Differential Revision: D3855861 fbshipit-source-id: 810d1ea4e6a64231356a4b6953f97de2f54d2558
This commit is contained in:
committed by
Facebook Github Bot 7
parent
d6926c5468
commit
6f75591620
@@ -9,7 +9,6 @@
|
||||
|
||||
package com.facebook.react.bridge;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
@@ -43,12 +42,6 @@ public interface NativeModule {
|
||||
*/
|
||||
Map<String, NativeMethod> getMethods();
|
||||
|
||||
/**
|
||||
* Append a field which represents the constants this module exports
|
||||
* to JS. If no constants are exported this should do nothing.
|
||||
*/
|
||||
void writeConstantsField(JsonWriter writer, String fieldName) throws IOException;
|
||||
|
||||
/**
|
||||
* This is called at the end of {@link CatalystApplicationFragment#createCatalystInstance()}
|
||||
* after the CatalystInstance has been created, in order to initialize NativeModules that require
|
||||
@@ -64,15 +57,6 @@ 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