Skip to content

Commit 93e830c

Browse files
committed
use onPress instead of onPressOut
1 parent 6f26636 commit 93e830c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

examples/SampleApp/src/components/ConfirmationBottomSheet.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,15 @@ export const ConfirmationBottomSheet: React.FC = () => {
102102
>
103103
{/* using onPressOut instead of onPress works with touchables inside absolutely positioned parents and gives the same opacity feedback */}
104104
<TouchableOpacity
105-
onPressOut={() => {
105+
onPress={() => {
106106
setOverlay('none');
107107
reset();
108108
}}
109109
style={styles.actionButtonLeft}
110110
>
111111
<Text style={{ color: grey }}>{cancelText}</Text>
112112
</TouchableOpacity>
113-
<TouchableOpacity
114-
onPressOut={onConfirm}
115-
style={styles.actionButtonRight}
116-
>
113+
<TouchableOpacity onPress={onConfirm} style={styles.actionButtonRight}>
117114
<Text style={{ color: accent_red }}>{confirmText}</Text>
118115
</TouchableOpacity>
119116
</View>

0 commit comments

Comments
 (0)