Skip to content

Commit

Permalink
fix: update TextInput Typing (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
buncis authored and satya164 committed Feb 12, 2019
1 parent b4490cf commit 3983edd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions typings/components/TextInput.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { TextInputProps as NativeTextInputProps } from 'react-native';
import { TextInputProps as NativeTextInputProps, TextInputFocusEventData, NativeSyntheticEvent } from 'react-native';
import { ThemeShape } from '../types';

export interface TextInputProps extends NativeTextInputProps {
Expand All @@ -12,8 +12,8 @@ export interface TextInputProps extends NativeTextInputProps {
underlineColor?: string;
multiline?: boolean;
numberOfLines?: number;
onFocus?: () => any;
onBlur?: () => any;
onFocus?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void;
onBlur?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void;
render?: (props: RenderProps) => React.ReactNode;
value?: string;
style?: any;
Expand All @@ -27,8 +27,8 @@ export interface RenderProps extends NativeTextInputProps {
placeholderTextColor: string;
editable?: boolean;
selectionColor: string;
onFocus: () => any;
onBlur: () => any;
onFocus?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void;
onBlur?: (e: NativeSyntheticEvent<TextInputFocusEventData>) => void;
underlineColorAndroid: string;
style: any;
multiline?: boolean;
Expand Down

0 comments on commit 3983edd

Please sign in to comment.