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>, "style" | "onLayout" | "testID" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "disabled" | "allowFontScaling" | "numberOfLines" | "nativeID" | "maxFontSizeMultiplier" | "selectionColor" | "textBreakStrategy" | "hitSlop" | "onBlur" | "onFocus" | "hasTVPreferredFocus" | "tvParallaxProperties" | "containerStyle" | "pointerEvents" | "removeClippedSubviews" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "platform" | "ref" | "label" | "onClear" | "placeholder" | "key" | "value" | "onContentSizeChange" | "onScroll" | "scrollEnabled" | "loadingProps" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onChange" | "onChangeText" | "onEndEditing" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onKeyPress" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "textAlign" | "inputAccessoryViewID" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "autoCompleteType" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "underlineColorAndroid" | "textAlignVertical" | "showSoftInputOnFocus" | "disabledInputStyle" | "inputContainerStyle" | "leftIcon" | "leftIconContainerStyle" | "rightIcon" | "rightIconContainerStyle" | "inputStyle" | "InputComponent" | "errorProps" | "errorStyle" | "errorMessage" | "labelStyle" | "labelProps" | "renderErrorMessage" | "clearIcon" | "searchIcon" | "showLoading" | "onCancel" | "cancelButtonTitle" | "cancelButtonProps" | "showCancel" | "cancelIcon" | "lightTheme" | "round">> | 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;