Skip to content

Commit

Permalink
feat: add proper TS type for TextInput style prop (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
vamshi9666 committed Jun 26, 2020
1 parent d6c0c3d commit 6376620
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/TextInput/TextInput.tsx
Expand Up @@ -4,6 +4,8 @@ import {
TextInput as NativeTextInput,
Platform,
LayoutChangeEvent,
StyleProp,
TextStyle,
} from 'react-native';

import TextInputOutlined from './TextInputOutlined';
Expand Down Expand Up @@ -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<TextStyle>;
/**
* @optional
*/
Expand Down

0 comments on commit 6376620

Please sign in to comment.