Update types for react-native-material-textfield (#39235)

* Update `react-native-material-textfield`

* Update version, `react-native-material-textfield`

* Fix TS Lint warnings

* Fix TS Lint errors
This commit is contained in:
Anders Friis 2019-10-22 22:26:31 +02:00 committed by Wesley Wigham
parent 64305fc7f9
commit dcee2f6e88

View File

@ -1,4 +1,4 @@
// Type definitions for react-native-material-textfield 0.12
// Type definitions for react-native-material-textfield 0.15
// Project: https://github.com/n4kz/react-native-material-textfield
// Definitions by: Ville Venäläinen <https://github.com/mindhivefi>
// Kyle Roach <https://github.com/iRoachie>
@ -14,15 +14,18 @@ import {
View
} from 'react-native';
export interface ContentInset {
top?: number;
label?: number;
input?: number;
}
export interface TextFieldProps extends TextInputProps {
animationDuration?: number;
fontSize?: number;
titleFontSize?: number;
labelFontSize?: number;
labelHeight?: number;
labelPadding?: number;
inputContainerPadding?: number;
contentInset?: ContentInset;
style?: StyleProp<TextStyle>;
labelTextStyle?: StyleProp<TextStyle>;