safe area view

This commit is contained in:
2025-06-06 20:36:15 +02:00
parent 48cf5cd6c4
commit df44742a7b
3 changed files with 12 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ import { Input, InputField, InputIcon, InputSlot } from "@/components/ui/input"
import { SearchIcon } from "@/components/ui/icon"
import { Box } from "@/components/ui/box"
import { useRouter } from "expo-router";
import { View } from "react-native";
export function SearchSection({ searchQuery, setSearchQuery }) {
const router = useRouter();
@@ -14,18 +15,17 @@ export function SearchSection({ searchQuery, setSearchQuery }) {
});
};
return (
<Box className="m-2 bg-white">
<Input>
<Box className="mb-2 bg-white p-2 rounded-md">
<Input className="p-2">
<InputSlot>
<InputIcon as={SearchIcon} />
</InputSlot>
<InputField placeholder="Wyszukaj.."
<InputField placeholder="Wyszukaj..."
value={searchQuery}
onChangeText={setSearchQuery}
onSubmitEditing={handleSubmit}
returnKeyType="search" />
</Input>
</Box>
)
}