21 lines
582 B
TypeScript
21 lines
582 B
TypeScript
import React from "react";
|
|
import { View, TextInput } from "react-native";
|
|
import { COLORS } from "../../constants/color";
|
|
import { styles } from "../../styles/Home/SearchbarStyles";
|
|
import {SearchBarProps} from "../../types/type"
|
|
|
|
|
|
|
|
export const SearchBar = ({ value, onChangeText }: SearchBarProps) => {
|
|
return (
|
|
<View style={styles.container}>
|
|
<TextInput
|
|
style={styles.input}
|
|
placeholder="Search asset or tag..."
|
|
placeholderTextColor={COLORS.textSecondary}
|
|
value={value}
|
|
onChangeText={onChangeText}
|
|
/>
|
|
</View>
|
|
);
|
|
}; |