Skip to main content

Search

Reusable Search

Example

import {useState} from 'react';

import {Search, SimpleIcon} from '@lad-tech/mobydick-core';

const ExampleSearch = () => {
const [value, setValue] = useState('');

return (
<Search
value={value}
onChangeText={setValue}
leftIcon={<SimpleIcon name={'icon-search'} />}
/>
);
};



export default ExampleSearch;

Props

TextInput Props

Inherits TextInput Props.

containerStyle

Type
ViewStyle

Custom styles for container

textInputContainerStyle

Type
ViewStyle

Custom styles for textInputContainer

leftIcon

Type
ReactElement

any react component placed right