File tree 2 files changed +9
-3
lines changed
src/components/TextInput/Label
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,9 @@ const InputLabel = (props: InputLabelProps) => {
111
111
: labeled ,
112
112
} ,
113
113
] ,
114
+ ...( Platform . constants . reactNativeVersion . minor >= 73 && {
115
+ transformOrigin : 'left' ,
116
+ } ) ,
114
117
} ;
115
118
116
119
const labelWidth =
@@ -146,7 +149,8 @@ const InputLabel = (props: InputLabelProps) => {
146
149
StyleSheet . absoluteFill ,
147
150
Platform . OS !== 'web' && { width } ,
148
151
{ opacity } ,
149
- labelTranslationX ,
152
+ Platform . constants . reactNativeVersion . minor <= 72 &&
153
+ labelTranslationX ,
150
154
] }
151
155
>
152
156
< View
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { Animated , StyleSheet } from 'react-native' ;
2
+ import { Animated , StyleSheet , Platform } from 'react-native' ;
3
3
4
4
import AnimatedText from '../../Typography/AnimatedText' ;
5
5
import type { LabelBackgroundProps } from '../types' ;
@@ -50,9 +50,11 @@ const LabelBackground = ({
50
50
backgroundColor,
51
51
maxHeight : Math . max ( roundness / 3 , 2 ) ,
52
52
bottom : Math . max ( roundness , 2 ) ,
53
- transform : [ labelTranslationX ] ,
54
53
opacity,
55
54
} ,
55
+ Platform . constants . reactNativeVersion . minor <= 72 && {
56
+ transform : [ labelTranslationX ] ,
57
+ } ,
56
58
] }
57
59
/>
58
60
) : null ;
You can’t perform that action at this time.
0 commit comments