diff --git a/packages/react-native/Libraries/Components/View/View.js b/packages/react-native/Libraries/Components/View/View.js index c4d2fc63ada..e51583ca6fe 100644 --- a/packages/react-native/Libraries/Components/View/View.js +++ b/packages/react-native/Libraries/Components/View/View.js @@ -10,7 +10,6 @@ import type {ViewProps} from './ViewPropTypes'; -import flattenStyle from '../../StyleSheet/flattenStyle'; import TextAncestor from '../../Text/TextAncestor'; import ViewNativeComponent from './ViewNativeComponent'; import * as React from 'react'; @@ -53,7 +52,6 @@ const View: React.AbstractComponent< id, importantForAccessibility, nativeID, - pointerEvents, tabIndex, ...otherProps }: ViewProps, @@ -96,12 +94,6 @@ const View: React.AbstractComponent< }; } - // $FlowFixMe[underconstrained-implicit-instantiation] - let style = flattenStyle(otherProps.style); - - // $FlowFixMe[sketchy-null-mixed] - const newPointerEvents = style?.pointerEvents || pointerEvents; - const actualView = ( ); diff --git a/packages/react-native/Libraries/Components/View/__tests__/View-test.js b/packages/react-native/Libraries/Components/View/__tests__/View-test.js index 18649af87ee..cf9be9fffe8 100644 --- a/packages/react-native/Libraries/Components/View/__tests__/View-test.js +++ b/packages/react-native/Libraries/Components/View/__tests__/View-test.js @@ -178,7 +178,6 @@ describe('View compat with web', () => { expect(instance.toJSON()).toMatchInlineSnapshot(`