File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from 'react' ;
22import {
33 View ,
4- Pressable ,
54 ScrollView ,
65 StyleSheet ,
76 TextStyle ,
7+ TouchableOpacity ,
88} from 'react-native' ;
99import { colors } from '../../styles/colors' ;
1010import { inputStyles } from '../../styles/input' ;
@@ -56,17 +56,16 @@ const DropdownSelectedItemsContainer = ({
5656 } ;
5757
5858 return (
59- < Pressable
59+ < TouchableOpacity
6060 onPress = { ( ) => openModal ( ) }
61- style = { ( { pressed } ) => [
62- pressed && {
61+ style = { [
62+ {
6363 ...inputStyles . inputFocusState ,
6464 borderColor : primaryColor ,
6565 } ,
6666 { ...inputStyles . input , ...dropdownStyle } ,
6767 error && //this must be last
68- error !== '' &&
69- ! pressed && {
68+ error !== '' && {
7069 ...inputStyles . inputFocusErrorState ,
7170 ...dropdownErrorStyle ,
7271 } ,
@@ -139,7 +138,7 @@ const DropdownSelectedItemsContainer = ({
139138 ) }
140139 </ View >
141140 </ ScrollView >
142- </ Pressable >
141+ </ TouchableOpacity >
143142 ) ;
144143} ;
145144
You can’t perform that action at this time.
0 commit comments