Skip to content

Commit 8afa04a

Browse files
Luna Weifacebook-github-bot
authored andcommitted
Fix static view config for pointerEvents
Summary: Changelog: [Internal] Add missing PointerEvents to static view config Reviewed By: RSNara Differential Revision: D39034349 fbshipit-source-id: a239dc7be15c9085979c8f810238c420de9c7a6f
1 parent 49c9ccd commit 8afa04a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Libraries/NativeComponent/BaseViewConfig.android.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ const validAttributesForNonEventProps = {
172172
accessibilityLabel: true,
173173
accessibilityHint: true,
174174
accessibilityRole: true,
175+
accessibilityCollection: true,
176+
accessibilityCollectionItem: true,
175177
accessibilityState: true,
176178
accessibilityActions: true,
177179
accessibilityValue: true,
@@ -182,7 +184,6 @@ const validAttributesForNonEventProps = {
182184
translateX: true,
183185
translateY: true,
184186
accessibilityLiveRegion: true,
185-
needsOffscreenAlphaCompositing: true,
186187

187188
// @ReactProps from LayoutShadowNode
188189
width: true,
@@ -273,8 +274,15 @@ const validAttributesForEventProps = {
273274

274275
// Pointer events
275276
onPointerEnter: true,
277+
onPointerEnterCapture: true,
276278
onPointerLeave: true,
279+
onPointerLeaveCapture: true,
277280
onPointerMove: true,
281+
onPointerMoveCapture: true,
282+
onPointerOut: true,
283+
onPointerOutCapture: true,
284+
onPointerOver: true,
285+
onPointerOverCapture: true,
278286
};
279287

280288
/**

0 commit comments

Comments
 (0)