mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
// Type definitions for react-native-material-design-searchbar 1.1
|
|
// Project: https://github.com/ananddayalan/react-native-material-design-searchbar
|
|
// Definitions by: Kyle Roach <https://github.com/iRoachie>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 2.8
|
|
|
|
import * as React from 'react';
|
|
import {
|
|
TextInputProps,
|
|
ReturnKeyType,
|
|
ReturnKeyTypeAndroid,
|
|
TextStyle,
|
|
ReturnKeyTypeIOS,
|
|
} from 'react-native';
|
|
|
|
export interface SearchBarProps {
|
|
height: number;
|
|
autoCorrect?: boolean;
|
|
returnKeyType?: ReturnKeyType | ReturnKeyTypeAndroid | ReturnKeyTypeIOS;
|
|
placeholder?: string;
|
|
padding?: number;
|
|
inputStyle?: TextStyle;
|
|
iconCloseName?: string;
|
|
iconSearchName?: string;
|
|
iconBackName?: string;
|
|
iconSize?: number;
|
|
iconPadding?: number;
|
|
placeholderColor?: string;
|
|
iconColor?: string;
|
|
textStyle?: TextStyle;
|
|
inputProps?: TextInputProps;
|
|
alwaysShowBackButton?: boolean;
|
|
onSearchChange?(text: string): void;
|
|
onClose?(): void;
|
|
onBlur?(): void;
|
|
onEndEditing?(): void;
|
|
onSubmitEditing?(): void;
|
|
onFocus?(): void;
|
|
onBackPress?(): void;
|
|
}
|
|
|
|
export default class SearchBar extends React.Component<SearchBarProps, any> {}
|