import React from 'react'; import IOSSearchBar, { SearchBarIosProps } from './SearchBar-ios'; import { SearchBarAndroidProps } from './SearchBar-android'; import { SearchBarDefaultProps } from './SearchBar-default'; import { ActivityIndicatorProps, StyleProp, TextStyle, ViewStyle, TextInput } from 'react-native'; import { IconNode } from '../icons/Icon'; import { ThemeProps } from '../config'; export declare type SearchBarBaseProps = React.ComponentPropsWithRef & { platform: 'default' | 'ios' | 'android'; containerStyle?: StyleProp; inputContainerStyle?: StyleProp; clearIcon?: IconNode; searchIcon?: IconNode; inputStyle?: StyleProp; loadingProps?: ActivityIndicatorProps; showLoading?: boolean; leftIconContainerStyle?: StyleProp; rightIconContainerStyle?: StyleProp; onClear?(): void; onFocus?(): void; onBlur?(): void; onChangeText?(text: string): void; onCancel?(): void; }; export declare type SearchBarProps = SearchBarBaseProps & SearchBarDefaultProps & SearchBarAndroidProps & SearchBarIosProps; declare class SearchBar extends React.Component>> { searchbar: IOSSearchBar; static defaultProps: { platform: "default"; }; focus: () => void; blur: () => void; clear: () => void; cancel: () => void; render(): JSX.Element; } export { SearchBar }; declare const _default: React.FunctionComponent & { platform: "ios" | "android" | "default"; containerStyle?: StyleProp; inputContainerStyle?: StyleProp; clearIcon?: IconNode; searchIcon?: IconNode; inputStyle?: StyleProp; loadingProps?: ActivityIndicatorProps; showLoading?: boolean; leftIconContainerStyle?: StyleProp; rightIconContainerStyle?: StyleProp; onClear?(): void; onFocus?(): void; onBlur?(): void; onChangeText?(text: string): void; onCancel?(): void; } & { value: string; loadingProps: {}; showLoading: boolean; lightTheme: boolean; round: boolean; onClear: () => any; onFocus: () => any; onBlur: () => any; onChangeText: () => any; } & { containerStyle?: StyleProp; disabled?: boolean; disabledInputStyle?: StyleProp; inputContainerStyle?: StyleProp; leftIcon?: IconNode; leftIconContainerStyle?: StyleProp; rightIcon?: IconNode; rightIconContainerStyle?: StyleProp; inputStyle?: StyleProp; InputComponent?: typeof React.Component; errorProps?: object; errorStyle?: StyleProp; errorMessage?: string; label?: React.ReactNode; labelStyle?: StyleProp; labelProps?: object; renderErrorMessage?: boolean; } & { onClear: () => any; onCancel: () => any; onFocus: () => any; onBlur: () => any; onChangeText: () => any; } & { cancelIcon?: IconNode; } & { value: string; cancelButtonTitle: string; loadingProps: {}; cancelButtonProps: {}; showLoading: boolean; onClear: () => any; onCancel: () => any; onFocus: () => any; onBlur: () => any; onChangeText: () => any; searchIcon: { name: string; }; clearIcon: { name: string; }; showCancel: boolean; } & { cancelButtonProps?: Partial & { buttonStyle?: StyleProp; buttonTextStyle?: StyleProp; color?: string; buttonDisabledStyle?: StyleProp; buttonDisabledTextStyle?: StyleProp; }; cancelButtonTitle?: string; showCancel?: boolean; } & Partial>, keyof ThemeProps>> | React.ForwardRefExoticComponent & { platform: "ios" | "android" | "default"; containerStyle?: StyleProp; inputContainerStyle?: StyleProp; clearIcon?: IconNode; searchIcon?: IconNode; inputStyle?: StyleProp; loadingProps?: ActivityIndicatorProps; showLoading?: boolean; leftIconContainerStyle?: StyleProp; rightIconContainerStyle?: StyleProp; onClear?(): void; onFocus?(): void; onBlur?(): void; onChangeText?(text: string): void; onCancel?(): void; } & { value: string; loadingProps: {}; showLoading: boolean; lightTheme: boolean; round: boolean; onClear: () => any; onFocus: () => any; onBlur: () => any; onChangeText: () => any; } & { containerStyle?: StyleProp; disabled?: boolean; disabledInputStyle?: StyleProp; inputContainerStyle?: StyleProp; leftIcon?: IconNode; leftIconContainerStyle?: StyleProp; rightIcon?: IconNode; rightIconContainerStyle?: StyleProp; inputStyle?: StyleProp; InputComponent?: typeof React.Component; errorProps?: object; errorStyle?: StyleProp; errorMessage?: string; label?: React.ReactNode; labelStyle?: StyleProp; labelProps?: object; renderErrorMessage?: boolean; } & { onClear: () => any; onCancel: () => any; onFocus: () => any; onBlur: () => any; onChangeText: () => any; } & { cancelIcon?: IconNode; } & { value: string; cancelButtonTitle: string; loadingProps: {}; cancelButtonProps: {}; showLoading: boolean; onClear: () => any; onCancel: () => any; onFocus: () => any; onBlur: () => any; onChangeText: () => any; searchIcon: { name: string; }; clearIcon: { name: string; }; showCancel: boolean; } & { cancelButtonProps?: Partial & { buttonStyle?: StyleProp; buttonTextStyle?: StyleProp; color?: string; buttonDisabledStyle?: StyleProp; buttonDisabledTextStyle?: StyleProp; }; cancelButtonTitle?: string; showCancel?: boolean; } & Partial>>; export default _default;