Skip to content

Commit bb7c6d1

Browse files
committed
Remove code to fix pointerEvents inline styling
1 parent 1a126da commit bb7c6d1

File tree

1 file changed

+1
-3
lines changed
  • packages/react-native-web/src/modules/createDOMProps

1 file changed

+1
-3
lines changed

packages/react-native-web/src/modules/createDOMProps/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -879,11 +879,9 @@ const createDOMProps = (elementType, props, options) => {
879879
`props.pointerEvents is deprecated. Use style.pointerEvents`
880880
);
881881
}
882-
const pointerEventsValue =
883-
StyleSheet.flatten(style).pointerEvents || pointerEvents;
884882

885883
const [className, inlineStyle] = StyleSheet(
886-
[style, pointerEventsValue && pointerEventsStyles[pointerEventsValue]],
884+
[style, pointerEvents && pointerEventsStyles[pointerEvents]],
887885
{
888886
writingDirection: 'ltr',
889887
...options

0 commit comments

Comments
 (0)