Skip to content

Commit 32337bc

Browse files
author
Andrzej Antoni Kwaśniewski
committed
fix deprecated
1 parent 11543b5 commit 32337bc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • apps/common-app/src/new_api/complicated/chat_heads

apps/common-app/src/new_api/complicated/chat_heads/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
22
import { StyleSheet, ImageStyle, LayoutChangeEvent } from 'react-native';
33
import { GestureDetector, usePanGesture } from 'react-native-gesture-handler';
44
import Animated, {
5+
SharedValue,
56
useAnimatedStyle,
67
useDerivedValue,
78
useSharedValue,
@@ -18,8 +19,8 @@ const CHAT_HEADS = [
1819
];
1920

2021
interface AnimatedOffset {
21-
x: Animated.SharedValue<number>;
22-
y: Animated.SharedValue<number>;
22+
x: SharedValue<number>;
23+
y: SharedValue<number>;
2324
}
2425

2526
interface 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,

0 commit comments

Comments
 (0)