- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.2k
 
Description
Hi,
I'm currently working with react-native-paper for both classical TextInput and multiline TextInput.
Currently i have a style problem :


The distance between the label and the first line of TextInput value is different for multiline and !multiline TextInput.
This is due to the property textAlignVertical which is set as "top" for !multiline fields and "center" for multiline.
It is partially related to #1020
Here is the code responsible of this behaviour : https://github.com/callstack/react-native-paper/blob/master/src/components/TextInput/TextInputFlat.tsx
Line 267
textAlignVertical: multiline ? 'top' : 'center',
(and of course same for TextInputOutlined
https://github.com/callstack/react-native-paper/blob/master/src/components/TextInput/TextInputOutlined.tsx
Is there a way to customize this style ?
It seems there is not a lot of style going that far from style props to TextInput, they are intercepted by the line76 in TextInputFlat
    const {
      fontSize: fontSizeStyle,
      fontWeight,
      height,
      paddingHorizontal,
      ...viewStyle
    } = (StyleSheet.flatten(style) || {}) as TextStyle;