Skip to content

Commit aae6e42

Browse files
authored
fix: update rn version for InputLabel translation (#4730)
1 parent 08d5ed9 commit aae6e42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/TextInput/Label/InputLabel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const InputLabel = (props: InputLabelProps) => {
114114
},
115115
],
116116
...(!isWeb &&
117-
Platform.constants.reactNativeVersion.minor >= 73 && {
117+
Platform.constants.reactNativeVersion.minor >= 78 && {
118118
transformOrigin: 'left',
119119
}),
120120
};
@@ -152,7 +152,7 @@ const InputLabel = (props: InputLabelProps) => {
152152
StyleSheet.absoluteFill,
153153
!isWeb && { width },
154154
{ opacity },
155-
(isWeb || Platform.constants.reactNativeVersion.minor <= 72) &&
155+
(isWeb || Platform.constants.reactNativeVersion.minor <= 77) &&
156156
labelTranslationX,
157157
]}
158158
>

src/components/TextInput/Label/LabelBackground.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const LabelBackground = ({
5454
bottom: Math.max(roundness, 2),
5555
opacity,
5656
},
57-
(isWeb || Platform.constants.reactNativeVersion.minor <= 72) && {
57+
(isWeb || Platform.constants.reactNativeVersion.minor <= 77) && {
5858
transform: [labelTranslationX],
5959
},
6060
]}

0 commit comments

Comments
 (0)