Skip to content

Commit

Permalink
Fix static view config for pointerEvents
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal] Add missing PointerEvents to static view config

Reviewed By: RSNara

Differential Revision: D39034349

fbshipit-source-id: a239dc7be15c9085979c8f810238c420de9c7a6f
  • Loading branch information
Luna Wei authored and facebook-github-bot committed Aug 26, 2022
1 parent 49c9ccd commit 8afa04a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Libraries/NativeComponent/BaseViewConfig.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ const validAttributesForNonEventProps = {
accessibilityLabel: true,
accessibilityHint: true,
accessibilityRole: true,
accessibilityCollection: true,
accessibilityCollectionItem: true,
accessibilityState: true,
accessibilityActions: true,
accessibilityValue: true,
Expand All @@ -182,7 +184,6 @@ const validAttributesForNonEventProps = {
translateX: true,
translateY: true,
accessibilityLiveRegion: true,
needsOffscreenAlphaCompositing: true,

// @ReactProps from LayoutShadowNode
width: true,
Expand Down Expand Up @@ -273,8 +274,15 @@ const validAttributesForEventProps = {

// Pointer events
onPointerEnter: true,
onPointerEnterCapture: true,
onPointerLeave: true,
onPointerLeaveCapture: true,
onPointerMove: true,
onPointerMoveCapture: true,
onPointerOut: true,
onPointerOutCapture: true,
onPointerOver: true,
onPointerOverCapture: true,
};

/**
Expand Down

0 comments on commit 8afa04a

Please sign in to comment.