DefinitelyTyped/types/react-native-material-design-searchbar/index.d.ts
Ferdy Budhidharma bc0c933415 feat(react-dependents): update to TS 2.8 (part 2 of 2) (#27744)
* feat(react-dependents): update to ts 2.8

* fix version mismatches

* remove package.json

* post merge updates

* add package.json back again
2018-08-06 06:28:42 +01:00

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> {}