diff --git a/change/@office-iss-react-native-win32-7e6d8533-efbe-42e9-940c-7c6bbc651f7d.json b/change/@office-iss-react-native-win32-7e6d8533-efbe-42e9-940c-7c6bbc651f7d.json new file mode 100644 index 00000000000..78f10962205 --- /dev/null +++ b/change/@office-iss-react-native-win32-7e6d8533-efbe-42e9-940c-7c6bbc651f7d.json @@ -0,0 +1,7 @@ +{ + "type": "prerelease", + "comment": "Update require's from TouchableWin32 to be imports", + "packageName": "@office-iss/react-native-win32", + "email": "30809111+acoates-ms@users.noreply.github.com", + "dependentChangeType": "patch" +} diff --git a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Touchable/TouchableWin32.tsx b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Touchable/TouchableWin32.tsx index 3e5371419f2..443a06480ec 100644 --- a/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Touchable/TouchableWin32.tsx +++ b/packages/@office-iss/react-native-win32/src-win/Libraries/Components/Touchable/TouchableWin32.tsx @@ -27,10 +27,13 @@ import { } from './TouchableWin32.Types'; import { IKeyboardEvent } from '../View/ViewPropTypes'; -const BoundingDimensions = require('./BoundingDimensions'); -const Position = require('./Position'); +// @ts-ignore +import BoundingDimensions from './BoundingDimensions'; +// @ts-ignore +import Position from './Position'; -const {findNodeHandle} = require('../../ReactNative/RendererProxy'); +// @ts-ignore +import {findNodeHandle} from '../../ReactNative/RendererProxy'; /** * Extracts a single touch, generally this is the active touch or touch that