Skip to content

Commit 25db080

Browse files
authored
[Win32] Fix TextWin32 export (#15617)
* Fix TextWin32 export * Change files
1 parent baa67da commit 25db080

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "Fix TextWin32 export",
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/index.win32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ module.exports = {
446446
},
447447
get TextWin32(): any {
448448
// Legacy export
449-
return require('./Libraries/Text/Text');
449+
return require('./Libraries/Text/Text').default;
450450
},
451451
get ButtonWin32(): any {
452452
return require('./Libraries/Components/Button/ButtonWin32').ButtonWin32;

0 commit comments

Comments
 (0)