No errors grocery page

This commit is contained in:
2021-10-31 15:25:42 +01:00
parent fb346632c5
commit 453e80f82d
26 changed files with 47 additions and 47 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react'
import styled from 'styled-components'
import { Text, View } from 'react-native'
import { Text, TouchableOpacity, View } from 'react-native'
const WrapperDropdown = styled(View)`
display: flex;
@@ -17,7 +17,7 @@ const WrapperDropdown = styled(View)`
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
`
const DropdownItem = styled(Text)`
const DropdownItem = styled(TouchableOpacity)`
color: ${({ theme }) => theme.colors.textW2};
font-size: 20px;
`
@@ -41,7 +41,7 @@ const Dropdown = (props) => {
let dropdownList = newArray.map((element, index) => {
return (
<View key={index}>
<DropdownItem onClick={() => props.setElement(element)}>{element}</DropdownItem>
<DropdownItem onPress={() => props.setElement(element)}>{element}</DropdownItem>
<HorizontalSeperator />
</View>
)