diff --git a/src/components/DraggableSticker.tsx b/src/components/DraggableSticker.tsx index ffdaa7a5..9377c718 100644 --- a/src/components/DraggableSticker.tsx +++ b/src/components/DraggableSticker.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { StyleSheet, Text, TouchableOpacity, View } from 'react-native'; +import { StyleSheet, Text, View, TouchableWithoutFeedback } from 'react-native'; import { Gesture, GestureDetector } from 'react-native-gesture-handler'; import Animated, { useSharedValue, @@ -104,13 +104,7 @@ export default function DraggableSticker({ ); }); - const tapGesture = Gesture.Tap() - .onEnd(() => { - runOnJS(selectSticker)(); - }); - - const composedDrag = Gesture.Simultaneous(panGesture, pinchGesture, rotationGesture); - const gesture = Gesture.Exclusive(composedDrag, tapGesture); + const gesture = Gesture.Simultaneous(panGesture, pinchGesture, rotationGesture); const animatedStyle = useAnimatedStyle(() => ({ transform: [ @@ -126,13 +120,17 @@ export default function DraggableSticker({ return ( - {isText ? ( - - {sticker.content} + + + {isText ? ( + + {sticker.content} + + ) : ( + {sticker.content} + )} - ) : ( - {sticker.content} - )} + );