import { Images } from '@/constants/images'; import { Image } from 'expo-image'; import React, { useState } from 'react'; import { StyleSheet, TextInput, TouchableOpacity, View } from 'react-native'; interface SearchBarProps { onSearch?: (keyword: string) => void; } export function SearchBar({ onSearch }: SearchBarProps) { const [keyword, setKeyword] = useState(''); const handleSearch = () => { onSearch?.(keyword); }; return ( {/* Logo - 134rpx = 67pt, 50rpx = 25pt */} {/* 搜索框 - 328rpx = 164pt, 56rpx = 28pt */} ); } const styles = StyleSheet.create({ container: { flexDirection: 'row', alignItems: 'center', paddingHorizontal: 15, paddingVertical: 10, }, logo: { width: 67, height: 25, marginRight: 20, }, logoImage: { width: '100%', height: '100%', }, searchBox: { flexDirection: 'row', alignItems: 'center', justifyContent: 'center', backgroundColor: 'rgba(255,255,255,0.38)', borderRadius: 180, paddingHorizontal: 12, height: 28, width: 164, }, searchIcon: { width: 15, height: 15, marginRight: 5, }, input: { width: 100, color: '#fff', fontSize: 12, padding: 0, }, });