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:
David Vacca authored and Facebook Github Bot committed 2019-08-02 16:38:45 -07:00
1 parent 470ace0932
commit 08e4537680
8 files changed
+98 -2

No files matched your search

@@ -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();
};