Skip to content

Commit 98b3d58

Browse files
authored
fix(0.81): use default import for normalizeColor (#2854)
Backport of #2853
1 parent a9b3d0b commit 98b3d58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-native/Libraries/StyleSheet/PlatformColorValueTypes.macos.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const _normalizeColorObject = (
8282
// a macOS semantic color
8383
return color;
8484
} else if ('dynamic' in color && color.dynamic !== undefined) {
85-
const normalizeColor = require('./normalizeColor');
85+
const normalizeColor = require('./normalizeColor').default;
8686

8787
// a dynamic, appearance aware color
8888
const dynamic = color.dynamic;
@@ -103,7 +103,7 @@ const _normalizeColorObject = (
103103
'colorWithSystemEffect' in color &&
104104
color.colorWithSystemEffect != null
105105
) {
106-
const normalizeColor = require('./normalizeColor');
106+
const normalizeColor = require('./normalizeColor').default;
107107
const colorWithSystemEffect = color.colorWithSystemEffect;
108108
const colorObject: LocalNativeColorValue = {
109109
colorWithSystemEffect: {

0 commit comments

Comments
 (0)