mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0f10e03dd8
Reviewed By: fkgozali Differential Revision: D8181616 fbshipit-source-id: 5937c83f22ac09e3041fcb0f8d4e9e3026b2b397
32 lines
864 B
Java
32 lines
864 B
Java
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
package com.facebook.react.fabric;
|
|
|
|
import com.facebook.react.bridge.JavaScriptContextHolder;
|
|
import com.facebook.react.bridge.NativeMap;
|
|
|
|
public interface FabricBinding {
|
|
|
|
void installFabric(JavaScriptContextHolder jsContext, FabricUIManager fabricModule);
|
|
|
|
long createEventTarget(long jsContextNativePointer, long instanceHandlePointer);
|
|
|
|
void releaseEventTarget(long jsContextNativePointer, long eventTargetPointer);
|
|
|
|
void releaseEventHandler(long jsContextNativePointer, long eventHandlerPointer);
|
|
|
|
void dispatchEventToTarget(
|
|
long jsContextNativePointer,
|
|
long eventHandlerPointer,
|
|
long eventTargetPointer,
|
|
String type,
|
|
NativeMap payload
|
|
);
|
|
|
|
}
|