Skip to content

Commit

Permalink
feat: Update TextStyle TS types
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel committed Sep 27, 2022
1 parent 5e55987 commit 3be099e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Libraries/Components/TextInput/TextInput.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ export interface TextInputAndroidProps {
* When false, it will prevent the soft keyboard from showing when the field is focused. The default value is true
*/
showSoftInputOnFocus?: boolean | undefined;

/**
* Vertically align text when `multiline` is set to true
*/
verticalAlign?: 'auto' | 'top' | 'bottom' | 'middle' | undefined;
}

/**
Expand Down
1 change: 1 addition & 0 deletions Libraries/StyleSheet/StyleSheetTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export interface TextStyleIOS extends ViewStyle {

export interface TextStyleAndroid extends ViewStyle {
textAlignVertical?: 'auto' | 'top' | 'bottom' | 'center' | undefined;
verticalAlign?: 'auto' | 'top' | 'bottom' | 'middle' | undefined;
includeFontPadding?: boolean | undefined;
}

Expand Down

0 comments on commit 3be099e

Please sign in to comment.