Skip to content

Commit

Permalink
Update Fabric to suport onEnter/onExit/onMove events
Browse files Browse the repository at this point in the history
Summary:
This diff updates the internals of Fabric to add support for onEnter/onExit/onMove events.

changelog: [internal] internal

Reviewed By: javache

Differential Revision: D32253128

fbshipit-source-id: 5b30e927bda0328ba1332801f66a6caba77f949b
  • Loading branch information
mdvacca authored and facebook-github-bot committed Nov 19, 2021
1 parent a9ccdca commit 34a5158
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions ReactCommon/react/renderer/components/view/ViewProps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,24 @@ ViewProps::ViewProps(
"onLayout",
sourceProps.onLayout,
{})),
pointerEnter(convertRawProp(
context,
rawProps,
"pointerenter",
sourceProps.pointerEnter,
{})),
pointerLeave(convertRawProp(
context,
rawProps,
"pointerleave",
sourceProps.pointerLeave,
{})),
pointerMove(convertRawProp(
context,
rawProps,
"pointermove",
sourceProps.pointerMove,
{})),
collapsable(convertRawProp(
context,
rawProps,
Expand Down
6 changes: 6 additions & 0 deletions ReactCommon/react/renderer/components/view/ViewProps.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ class ViewProps : public YogaStylableProps, public AccessibilityProps {
EdgeInsets hitSlop{};
bool onLayout{};

bool pointerEnter{};

bool pointerLeave{};

bool pointerMove{};

bool collapsable{true};

bool removeClippedSubviews{false};
Expand Down

0 comments on commit 34a5158

Please sign in to comment.