1.1.9 • Published 5 months ago

@types/react-native-material-design-searchbar v1.1.9

Weekly downloads
23
License
MIT
Repository
github
Last release
5 months ago

Installation

npm install --save @types/react-native-material-design-searchbar

Summary

This package contains type definitions for react-native-material-design-searchbar (https://github.com/ananddayalan/react-native-material-design-searchbar).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-material-design-searchbar.

index.d.ts

// 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 | undefined;
    returnKeyType?: ReturnKeyType | ReturnKeyTypeAndroid | ReturnKeyTypeIOS | undefined;
    placeholder?: string | undefined;
    padding?: number | undefined;
    inputStyle?: TextStyle | undefined;
    iconCloseName?: string | undefined;
    iconSearchName?: string | undefined;
    iconBackName?: string | undefined;
    iconSize?: number | undefined;
    iconPadding?: number | undefined;
    placeholderColor?: string | undefined;
    iconColor?: string | undefined;
    textStyle?: TextStyle | undefined;
    inputProps?: TextInputProps | undefined;
    alwaysShowBackButton?: boolean | undefined;
    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> {}

Additional Details

Credits

These definitions were written by Kyle Roach.

1.1.9

5 months ago

1.1.8

6 months ago

1.1.7

7 months ago

1.1.6

7 months ago

1.1.5

3 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago