File tree Expand file tree Collapse file tree
apps/common-app/src/new_api/complicated/chat_heads Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useState } from 'react';
22import { StyleSheet , ImageStyle , LayoutChangeEvent } from 'react-native' ;
33import { GestureDetector , usePanGesture } from 'react-native-gesture-handler' ;
44import Animated , {
5+ SharedValue ,
56 useAnimatedStyle ,
67 useDerivedValue ,
78 useSharedValue ,
@@ -18,8 +19,8 @@ const CHAT_HEADS = [
1819] ;
1920
2021interface AnimatedOffset {
21- x : Animated . SharedValue < number > ;
22- y : Animated . SharedValue < number > ;
22+ x : SharedValue < number > ;
23+ y : SharedValue < number > ;
2324}
2425
2526interface FollowingChatHeadProps {
@@ -98,7 +99,6 @@ const Example = () => {
9899 } ,
99100 onDeactivate : ( e ) => {
100101 const { height, width } = dimensions ;
101-
102102 const velocityDragX = clampToValues ( {
103103 value : e . velocityX * 0.05 ,
104104 bottom : - 100 ,
You can’t perform that action at this time.
0 commit comments