File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed
src/components/TextInput/Label Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -113,10 +113,6 @@ const InputLabel = (props: InputLabelProps) => {
113
113
: labeled ,
114
114
} ,
115
115
] ,
116
- ...( ! isWeb &&
117
- Platform . constants . reactNativeVersion . minor >= 78 && {
118
- transformOrigin : 'left' ,
119
- } ) ,
120
116
} ;
121
117
122
118
const labelWidth =
@@ -152,8 +148,7 @@ const InputLabel = (props: InputLabelProps) => {
152
148
StyleSheet . absoluteFill ,
153
149
! isWeb && { width } ,
154
150
{ opacity } ,
155
- ( isWeb || Platform . constants . reactNativeVersion . minor <= 77 ) &&
156
- labelTranslationX ,
151
+ labelTranslationX ,
157
152
] }
158
153
>
159
154
< View
Original file line number Diff line number Diff line change 1
1
import * as React from 'react' ;
2
- import { Animated , StyleSheet , Platform } from 'react-native' ;
2
+ import { Animated , StyleSheet } from 'react-native' ;
3
3
4
4
import AnimatedText from '../../Typography/AnimatedText' ;
5
5
import type { LabelBackgroundProps } from '../types' ;
@@ -17,8 +17,6 @@ const LabelBackground = ({
17
17
maxFontSizeMultiplier,
18
18
testID,
19
19
} : LabelBackgroundProps ) => {
20
- const isWeb = Platform . OS === 'web' ;
21
-
22
20
const opacity = labeled . interpolate ( {
23
21
inputRange : [ 0 , 0.6 ] ,
24
22
outputRange : [ 1 , 0 ] ,
@@ -52,10 +50,8 @@ const LabelBackground = ({
52
50
backgroundColor,
53
51
maxHeight : Math . max ( roundness / 3 , 2 ) ,
54
52
bottom : Math . max ( roundness , 2 ) ,
55
- opacity,
56
- } ,
57
- ( isWeb || Platform . constants . reactNativeVersion . minor <= 77 ) && {
58
53
transform : [ labelTranslationX ] ,
54
+ opacity,
59
55
} ,
60
56
] }
61
57
/>
You can’t perform that action at this time.
0 commit comments