@@ -15,11 +15,9 @@ import Animated, {
1515 withTiming ,
1616} from 'react-native-reanimated' ;
1717import {
18- CircleClose ,
1918 MessageIcon ,
2019 useChatContext ,
2120 User ,
22- UserMinus ,
2321 useTheme ,
2422 useViewport ,
2523 UserAvatar ,
@@ -32,6 +30,8 @@ import { useAppContext } from '../context/AppContext';
3230import { UserResponse } from 'stream-chat' ;
3331import { useUserInfoOverlayActions } from '../hooks/useUserInfoOverlayActions' ;
3432import { SafeAreaView } from 'react-native-safe-area-context' ;
33+ import { UserMinus } from '../icons/UserMinus' ;
34+ import { CircleClose } from '../icons/CircleClose' ;
3535
3636dayjs . extend ( relativeTime ) ;
3737
@@ -123,19 +123,19 @@ export const UserInfoOverlay = (props: UserInfoOverlayProps) => {
123123 }
124124 showScreen . value = show
125125 ? withTiming ( 1 , {
126- duration : 150 ,
127- easing : Easing . in ( Easing . ease ) ,
128- } )
129- : withTiming (
130- 0 ,
131- {
132126 duration : 150 ,
133- easing : Easing . out ( Easing . ease ) ,
134- } ,
135- ( ) => {
136- runOnJS ( reset ) ( ) ;
137- } ,
138- ) ;
127+ easing : Easing . in ( Easing . ease ) ,
128+ } )
129+ : withTiming (
130+ 0 ,
131+ {
132+ duration : 150 ,
133+ easing : Easing . out ( Easing . ease ) ,
134+ } ,
135+ ( ) => {
136+ runOnJS ( reset ) ( ) ;
137+ } ,
138+ ) ;
139139 } ;
140140
141141 useEffect ( ( ) => {
@@ -181,12 +181,12 @@ export const UserInfoOverlay = (props: UserInfoOverlayProps) => {
181181 translateY . value =
182182 evt . velocityY > 1000
183183 ? withDecay ( {
184- velocity : evt . velocityY ,
185- } )
184+ velocity : evt . velocityY ,
185+ } )
186186 : withTiming ( screenHeight , {
187- duration : 200 ,
188- easing : Easing . out ( Easing . ease ) ,
189- } ) ;
187+ duration : 200 ,
188+ easing : Easing . out ( Easing . ease ) ,
189+ } ) ;
190190 } else {
191191 translateY . value = withTiming ( 0 ) ;
192192 overlayOpacity . value = withTiming ( 1 ) ;
@@ -217,8 +217,8 @@ export const UserInfoOverlay = (props: UserInfoOverlayProps) => {
217217
218218 const self = channel
219219 ? Object . values ( channel . state . members ) . find (
220- ( channelMember ) => channelMember . user ?. id === client . user ?. id ,
221- )
220+ ( channelMember ) => channelMember . user ?. id === client . user ?. id ,
221+ )
222222 : undefined ;
223223
224224 const { viewInfo, messageUser, removeFromGroup, cancel } = useUserInfoOverlayActions ( ) ;
0 commit comments