Skip to content

Commit a7df65f

Browse files
committed
fix: nativewind fix
1 parent 44f6e8f commit a7df65f

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/components/Dropdown/DropdownSelectedItemsContainer.tsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import {
33
View,
4-
Pressable,
54
ScrollView,
65
StyleSheet,
76
TextStyle,
7+
TouchableOpacity,
88
} from 'react-native';
99
import { colors } from '../../styles/colors';
1010
import { 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

0 commit comments

Comments
 (0)