mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Expose JS Responder handler in Scheduler API
Summary: This diff implements the JSResponderHandler methods in the core of RN (scheduler API and friends) Reviewed By: ejanzer Differential Revision: D16543437 fbshipit-source-id: dac03e30c4330d182ecf134f3174ba942dbf7289
This commit is contained in:
committed by
Facebook Github Bot
parent
470ace0932
commit
08e4537680
@@ -724,6 +724,14 @@ void Binding::schedulerDidDispatchCommand(
|
||||
dispatchCommand(localJavaUIManager, shadowView.tag, command.get(), argsArray.get());
|
||||
}
|
||||
|
||||
void Binding::schedulerDidSetJSResponder(
|
||||
SurfaceId surfaceId,
|
||||
const ShadowView &shadowView,
|
||||
const ShadowView &initialShadowView,
|
||||
bool blockNativeResponder) { }
|
||||
|
||||
void Binding::schedulerDidClearJSResponder() { }
|
||||
|
||||
void Binding::registerNatives() {
|
||||
registerHybrid(
|
||||
{makeNativeMethod("initHybrid", Binding::initHybrid),
|
||||
|
||||
@@ -89,6 +89,14 @@ class Binding : public jni::HybridClass<Binding>, public SchedulerDelegate {
|
||||
|
||||
void setPixelDensity(float pointScaleFactor);
|
||||
|
||||
void schedulerDidSetJSResponder(
|
||||
SurfaceId surfaceId,
|
||||
const ShadowView &shadowView,
|
||||
const ShadowView &initialShadowView,
|
||||
bool blockNativeResponder);
|
||||
|
||||
void schedulerDidClearJSResponder();
|
||||
|
||||
void uninstallFabricUIManager();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user