-3

Tentei desse jeito, mas não funcionou. Alguma sugestão.

{filterUser && filterUser.length > 0 && (
         <FlashList
 data={filterUser ?? []}
 estimatedListSize={{
 height: 500 * 5,
 width: Dimensions.get("window").width - 30,
           }}
 estimatedItemSize={Dimensions.get("window").width - 30}
 showsHorizontalScrollIndicator={false}
 showsVerticalScrollIndicator={false}
 ItemSeparatorComponent={() => <View className="h-4" />}
 renderItem={({ item, index }) => (
             <TouchableOpacity
 key={index}
 activeOpacity={0.6}
 onPress={() => handleMoveToSearch(item.name)}
 className="flex-row gap-x-2 items-center"
             >
               <SearchSvg />
               <Text
 className={
                   "text-sm font-PlusJakartaSans_500Medium text-dark-primary"
                 }
               >
                 {item.name}
               </Text>
             </TouchableOpacity>
           )}
         />
       )}

0

Pesquise outras perguntas com a tag .