Skip to content

Commit 94db046

Browse files
committed
Wrap DatePicker styles with Stylesheet.flatten
- prevents `CSSStyleDeclaration': Index property setter is not supported` error
1 parent 375d0ca commit 94db046

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/core/src/components/DatePicker/DatePicker.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,20 +395,20 @@ const DatePicker: React.FC<React.PropsWithChildren<Props>> = ({
395395
<Touchable disabled={disabled} onPress={toggleVisibility}>
396396
<View pointerEvents="none">
397397
<View
398-
style={[
398+
style={StyleSheet.flatten([
399399
styles.container,
400400
omit(style, [...paddingStyleNames, "backgroundColor"]),
401-
]}
401+
])}
402402
>
403403
{leftIconName && leftIconMode === "outset" ? (
404404
<Icon {...leftIconProps} style={leftIconStyle} />
405405
) : null}
406406
<View
407-
style={[
407+
style={StyleSheet.flatten([
408408
containerStyle,
409409
style ? { height: style.height } : {},
410410
omit(style, [...marginStyleNames, ...positionStyleNames]),
411-
]}
411+
])}
412412
>
413413
{type === "underline" ? (
414414
// When type === 'flat', render an underline

0 commit comments

Comments
 (0)