From 6384dfa727e96e5bc961f84e33f4517ed9a6e728 Mon Sep 17 00:00:00 2001 From: Paul-Andrei Petan Date: Tue, 13 May 2025 12:26:48 +0300 Subject: [PATCH] update rn version for InputLabel translation --- src/components/TextInput/Label/InputLabel.tsx | 4 ++-- src/components/TextInput/Label/LabelBackground.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/TextInput/Label/InputLabel.tsx b/src/components/TextInput/Label/InputLabel.tsx index 7870dbec5f..1f474f7ad6 100644 --- a/src/components/TextInput/Label/InputLabel.tsx +++ b/src/components/TextInput/Label/InputLabel.tsx @@ -114,7 +114,7 @@ const InputLabel = (props: InputLabelProps) => { }, ], ...(!isWeb && - Platform.constants.reactNativeVersion.minor >= 73 && { + Platform.constants.reactNativeVersion.minor >= 78 && { transformOrigin: 'left', }), }; @@ -152,7 +152,7 @@ const InputLabel = (props: InputLabelProps) => { StyleSheet.absoluteFill, !isWeb && { width }, { opacity }, - (isWeb || Platform.constants.reactNativeVersion.minor <= 72) && + (isWeb || Platform.constants.reactNativeVersion.minor <= 77) && labelTranslationX, ]} > diff --git a/src/components/TextInput/Label/LabelBackground.tsx b/src/components/TextInput/Label/LabelBackground.tsx index f929605293..2c063c7ea4 100644 --- a/src/components/TextInput/Label/LabelBackground.tsx +++ b/src/components/TextInput/Label/LabelBackground.tsx @@ -54,7 +54,7 @@ const LabelBackground = ({ bottom: Math.max(roundness, 2), opacity, }, - (isWeb || Platform.constants.reactNativeVersion.minor <= 72) && { + (isWeb || Platform.constants.reactNativeVersion.minor <= 77) && { transform: [labelTranslationX], }, ]}