function SearchBar() {
return <VStack space={8} width="100%">
<VStack width="100%" space={2}>
<Box>Cupertino</Box>
<Input placeholder="Search" variant="filled" width="100%" bg="gray.200" borderRadius={10} py={1} px={2} _web={{
_focus: {
borderColor: 'muted.300',
style: {
boxShadow: 'none'
}
}
}} InputLeftElement={<Icon size="sm" ml={2} size={5} color="gray.400" as={<Ionicons name="ios-search" />} />} />
</VStack>
<VStack width="100%" space={2}>
<Box>Material</Box>
<Input placeholder="Search People & Places" bg="#fff" width="100%" borderRadius={4} py={3} px={1} fontSize={14} _web={{
_focus: {
borderColor: 'muted.300',
style: {
boxShadow: 'none'
}
}
}} InputLeftElement={<Icon size="sm" m={2} size={6} color="gray.400" as={<MaterialIcons name="search" />} />} InputRightElement={<Icon size="sm" m={2} size={6} color="gray.400" as={<MaterialIcons name="mic" />} />} />
</VStack>
</VStack>;
}
function Example() {
return <NativeBaseProvider>
<Center flex={1} px={2}>
<SearchBar />
</Center>
</NativeBaseProvider>;
}