File tree 1 file changed +3
-2
lines changed
packages/uikit-react-native-foundation/src/styles
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -13,14 +13,15 @@ const SCALE_FACTOR_WITH_DIMENSION_VALUE = (
13
13
} ;
14
14
15
15
const DEFAULT_SCALE_FACTOR_WITH_NUMERIC_VALUE = (
16
- val : NonNullable < AnimatableNumericValue | undefined > ,
17
- ) : NonNullable < AnimatableNumericValue | undefined > => {
16
+ val : NonNullable < AnimatableNumericValue | string | undefined > ,
17
+ ) : NonNullable < AnimatableNumericValue | string | undefined > => {
18
18
return typeof val === 'number' ? DEFAULT_SCALE_FACTOR ( val ) : val ;
19
19
} ;
20
20
21
21
const preProcessor : Partial < StylePreprocessor > = {
22
22
'fontSize' : DEFAULT_SCALE_FACTOR ,
23
23
'lineHeight' : DEFAULT_SCALE_FACTOR ,
24
+ //@ts -ignore : Ensure compatibility with all supported React Native versions
24
25
'borderRadius' : DEFAULT_SCALE_FACTOR_WITH_NUMERIC_VALUE ,
25
26
'minWidth' : SCALE_FACTOR_WITH_DIMENSION_VALUE ,
26
27
'maxWidth' : SCALE_FACTOR_WITH_DIMENSION_VALUE ,
You can’t perform that action at this time.
0 commit comments