react-native-ecommerce-components
Version:
A compilation of components to optimize the development of your ecommerce
18 lines (17 loc) • 547 B
TypeScript
import React from 'react';
import { StyleProp, ViewStyle, TextStyle } from 'react-native';
type Language = 'en' | 'pt';
interface SearchBarProps {
onSearch: (query: string) => void;
placeholder?: string;
clearButtonText?: string;
language?: Language;
styles?: {
container?: StyleProp<ViewStyle>;
input?: StyleProp<ViewStyle>;
button?: StyleProp<ViewStyle>;
buttonText?: StyleProp<TextStyle>;
};
}
declare const SearchBar: React.FC<SearchBarProps>;
export default SearchBar;