Permalink
Browse files

Reset pointerEvents on null value

Summary: This was ignored before.

Reviewed By: javache

Differential Revision: D4495022

fbshipit-source-id: 9003fa109ef0274b2d1d023d9839a7027cbf522a
  • Loading branch information...
astreet authored and facebook-github-bot committed Feb 1, 2017
1 parent 76e3d45 commit 866ac173318bd5518b5ed78c2e3da764436be39a
@@ -95,7 +95,9 @@ public void setHitSlop(final ReactViewGroup view, @Nullable ReadableMap hitSlop)
@ReactProp(name = ViewProps.POINTER_EVENTS)
public void setPointerEvents(ReactViewGroup view, @Nullable String pointerEventsStr) {
if (pointerEventsStr != null) {
if (pointerEventsStr == null) {
view.setPointerEvents(PointerEvents.AUTO);
} else {
PointerEvents pointerEvents =
PointerEvents.valueOf(pointerEventsStr.toUpperCase(Locale.US).replace("-", "_"));
view.setPointerEvents(pointerEvents);

0 comments on commit 866ac17

Please sign in to comment.