Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32161551
D15029.1765043501.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
757 B
Referenced Files
None
Subscribers
None
D15029.1765043501.diff
View Options
diff --git a/native/components/gesture-touchable-opacity.react.js b/native/components/gesture-touchable-opacity.react.js
--- a/native/components/gesture-touchable-opacity.react.js
+++ b/native/components/gesture-touchable-opacity.react.js
@@ -65,8 +65,12 @@
const stickyActiveEnabled =
stickyActive !== null && stickyActive !== undefined;
- const longPressState = useSharedValue(-1);
- const tapState = useSharedValue(-1);
+ const longPressState = useSharedValue<$Values<typeof GestureState>>(
+ GestureState.UNDETERMINED,
+ );
+ const tapState = useSharedValue<$Values<typeof GestureState>>(
+ GestureState.UNDETERMINED,
+ );
const longPressEvent = useAnimatedGestureHandler<LongPressGestureEvent>(
{
onStart: () => {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 6, 5:51 PM (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5839879
Default Alt Text
D15029.1765043501.diff (757 B)
Attached To
Mode
D15029: [Flow262][skip-ci] Fix gesture state in useSharedValue
Attached
Detach File
Event Timeline
Log In to Comment