UNPKG

@uiw/react-native

Version:
25 lines (24 loc) 908 B
import React from 'react'; import { StyleProp, ViewStyle } from 'react-native'; interface SearchBarProps { onChangeText?: (value: string) => void; options?: Array<OptionsState>; onChange?: (value: string | null) => void; onFocus?: (e: any | string) => void; onBlur?: (e: any | string) => void; labelInValue?: Boolean; disabled?: Boolean; value?: string | OptionsState; loading?: Boolean; placeholder?: string; extra?: JSX.Element; showClear?: boolean; contentStyle?: StyleProp<ViewStyle>; } interface OptionsState { label: string; value: string | number; } declare function SearchBar({ onChangeText, options, onChange, labelInValue, disabled, value, onFocus, onBlur, loading, placeholder, extra, showClear, contentStyle, }: SearchBarProps): JSX.Element; declare const _default: React.MemoExoticComponent<typeof SearchBar>; export default _default;