@@ -19,7 +19,6 @@ import type {TextInputType} from './TextInput.flow';
19
19
20
20
import usePressability from '../../Pressability/usePressability' ;
21
21
import flattenStyle from '../../StyleSheet/flattenStyle' ;
22
- import processStyles from '../../StyleSheet/processStyles' ;
23
22
import StyleSheet , {
24
23
type ColorValue ,
25
24
type TextStyleProp ,
@@ -1420,19 +1419,15 @@ function InternalTextInput(props: Props): React.Node {
1420
1419
} ;
1421
1420
}
1422
1421
1422
+ let style = flattenStyle ( props . style ) ;
1423
+
1423
1424
if ( Platform . OS === 'ios' ) {
1424
1425
const RCTTextInputView =
1425
1426
props . multiline === true
1426
1427
? RCTMultilineTextInputView
1427
1428
: RCTSinglelineTextInputView ;
1428
1429
1429
- let style =
1430
- props . multiline === true
1431
- ? [ styles . multilineInput , props . style ]
1432
- : props . style ;
1433
-
1434
- style = flattenStyle ( style ) ;
1435
- style = processStyles ( style ) ;
1430
+ style = props . multiline === true ? [ styles . multilineInput , style ] : style ;
1436
1431
1437
1432
const useOnChangeSync =
1438
1433
( props . unstable_onChangeSync || props . unstable_onChangeTextSync ) &&
@@ -1465,9 +1460,6 @@ function InternalTextInput(props: Props): React.Node {
1465
1460
/>
1466
1461
) ;
1467
1462
} else if ( Platform . OS === 'android' ) {
1468
- let style = flattenStyle ( props . style ) ;
1469
- style = processStyles ( style ) ;
1470
-
1471
1463
const autoCapitalize = props . autoCapitalize || 'sentences' ;
1472
1464
const _accessibilityLabelledBy =
1473
1465
props ?. [ 'aria-labelledby' ] ?? props ?. accessibilityLabelledBy ;
@@ -1635,11 +1627,12 @@ const ExportedForwardRef: React.AbstractComponent<
1635
1627
React . ElementRef < HostComponent < mixed >> & ImperativeMethods ,
1636
1628
> ,
1637
1629
) {
1638
- const style = flattenStyle ( restProps . style ) ;
1630
+ let style = flattenStyle ( restProps . style ) ;
1639
1631
1640
1632
if ( style ?. verticalAlign != null ) {
1641
1633
style . textAlignVertical =
1642
1634
verticalAlignToTextAlignVerticalMap [ style . verticalAlign ] ;
1635
+ delete style . verticalAlign ;
1643
1636
}
1644
1637
1645
1638
return (
0 commit comments