mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
8529b1ee91
Reviewed By: achen1 Differential Revision: D8232155 fbshipit-source-id: 6683c692a830f5a73aab2c606167e54d668ae5c2
20 lines
498 B
Java
20 lines
498 B
Java
package com.facebook.react.bridge;
|
|
|
|
/**
|
|
* Marker interface used to represent a JSI Module.
|
|
*/
|
|
public interface JSIModule {
|
|
|
|
/**
|
|
* This is called at the end of {@link CatalystApplicationFragment#createCatalystInstance()}
|
|
* after the CatalystInstance has been created, in order to initialize NativeModules that require
|
|
* the CatalystInstance or JS modules.
|
|
*/
|
|
void initialize();
|
|
|
|
/**
|
|
* Called before {CatalystInstance#onHostDestroy}
|
|
*/
|
|
void onCatalystInstanceDestroy();
|
|
}
|