From 637662098138a0385b0a03efddcb6132beecb12e Mon Sep 17 00:00:00 2001 From: Vamshi krishna Date: Fri, 26 Jun 2020 18:20:57 +0530 Subject: [PATCH] feat: add proper TS type for TextInput style prop (#1933) --- src/components/TextInput/TextInput.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/TextInput/TextInput.tsx b/src/components/TextInput/TextInput.tsx index cfed877648..55546af77c 100644 --- a/src/components/TextInput/TextInput.tsx +++ b/src/components/TextInput/TextInput.tsx @@ -4,6 +4,8 @@ import { TextInput as NativeTextInput, Platform, LayoutChangeEvent, + StyleProp, + TextStyle, } from 'react-native'; import TextInputOutlined from './TextInputOutlined'; @@ -109,7 +111,7 @@ export type TextInputProps = React.ComponentPropsWithRef< * Pass `paddingHorizontal` to modify horizontal padding. * This can be used to get MD Guidelines v1 TextInput look. */ - style?: any; + style?: StyleProp; /** * @optional */