@@ -19,7 +19,6 @@ import type {TextInputType} from './TextInput.flow';
1919
2020import usePressability from '../../Pressability/usePressability' ;
2121import flattenStyle from '../../StyleSheet/flattenStyle' ;
22- import processStyles from '../../StyleSheet/processStyles' ;
2322import StyleSheet , {
2423 type ColorValue ,
2524 type TextStyleProp ,
@@ -1420,19 +1419,15 @@ function InternalTextInput(props: Props): React.Node {
14201419 } ;
14211420 }
14221421
1422+ let style = flattenStyle ( props . style ) ;
1423+
14231424 if ( Platform . OS === 'ios' ) {
14241425 const RCTTextInputView =
14251426 props . multiline === true
14261427 ? RCTMultilineTextInputView
14271428 : RCTSinglelineTextInputView ;
14281429
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 ;
14361431
14371432 const useOnChangeSync =
14381433 ( props . unstable_onChangeSync || props . unstable_onChangeTextSync ) &&
@@ -1465,9 +1460,6 @@ function InternalTextInput(props: Props): React.Node {
14651460 />
14661461 ) ;
14671462 } else if ( Platform . OS === 'android' ) {
1468- let style = flattenStyle ( props . style ) ;
1469- style = processStyles ( style ) ;
1470-
14711463 const autoCapitalize = props . autoCapitalize || 'sentences' ;
14721464 const _accessibilityLabelledBy =
14731465 props ?. [ 'aria-labelledby' ] ?? props ?. accessibilityLabelledBy ;
@@ -1635,11 +1627,12 @@ const ExportedForwardRef: React.AbstractComponent<
16351627 React . ElementRef < HostComponent < mixed >> & ImperativeMethods ,
16361628 > ,
16371629) {
1638- const style = flattenStyle ( restProps . style ) ;
1630+ let style = flattenStyle ( restProps . style ) ;
16391631
16401632 if ( style ?. verticalAlign != null ) {
16411633 style . textAlignVertical =
16421634 verticalAlignToTextAlignVerticalMap [ style . verticalAlign ] ;
1635+ delete style . verticalAlign ;
16431636 }
16441637
16451638 return (
0 commit comments