Skip to content

Commit fb1997d

Browse files
authored
[Win32] Update require's from TouchableWin32 to be imports (#15755)
* Update require's from TouchableWin32 to be imports * Change files
1 parent 60e01ba commit fb1997d

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Update require's from TouchableWin32 to be imports",
4+
"packageName": "@office-iss/react-native-win32",
5+
"email": "30809111+acoates-ms@users.noreply.github.com",
6+
"dependentChangeType": "patch"
7+
}

packages/@office-iss/react-native-win32/src-win/Libraries/Components/Touchable/TouchableWin32.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,13 @@ import {
2727
} from './TouchableWin32.Types';
2828
import { IKeyboardEvent } from '../View/ViewPropTypes';
2929

30-
const BoundingDimensions = require('./BoundingDimensions');
31-
const Position = require('./Position');
30+
// @ts-ignore
31+
import BoundingDimensions from './BoundingDimensions';
32+
// @ts-ignore
33+
import Position from './Position';
3234

33-
const {findNodeHandle} = require('../../ReactNative/RendererProxy');
35+
// @ts-ignore
36+
import {findNodeHandle} from '../../ReactNative/RendererProxy';
3437

3538
/**
3639
* Extracts a single touch, generally this is the active touch or touch that

0 commit comments

Comments
 (0)