11import React from 'react' ;
22import { Image , StyleSheet , Text , TouchableOpacity , View } from 'react-native' ;
33
4- import type { Attachment , ExtendableGenerics } from 'stream-chat' ;
4+ import type { Attachment } from 'stream-chat' ;
55
66import {
77 MessageContextValue ,
@@ -93,7 +93,7 @@ const styles = StyleSheet.create({
9393} ) ;
9494
9595export type GiphyPropsWithContext <
96- StreamChatClient extends ExtendableGenerics = DefaultStreamChatGenerics ,
96+ StreamChatClient extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
9797> = Pick <
9898 MessageContextValue < StreamChatClient > ,
9999 'handleAction' | 'onLongPress' | 'onPress' | 'onPressIn' | 'preventPress'
@@ -102,7 +102,9 @@ export type GiphyPropsWithContext<
102102 attachment : Attachment < StreamChatClient > ;
103103 } ;
104104
105- const GiphyWithContext = < StreamChatClient extends ExtendableGenerics = DefaultStreamChatGenerics > (
105+ const GiphyWithContext = <
106+ StreamChatClient extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
107+ > (
106108 props : GiphyPropsWithContext < StreamChatClient > ,
107109) => {
108110 const {
@@ -259,7 +261,7 @@ const GiphyWithContext = <StreamChatClient extends ExtendableGenerics = DefaultS
259261 ) ;
260262} ;
261263
262- const areEqual = < StreamChatClient extends ExtendableGenerics = DefaultStreamChatGenerics > (
264+ const areEqual = < StreamChatClient extends DefaultStreamChatGenerics = DefaultStreamChatGenerics > (
263265 prevProps : GiphyPropsWithContext < StreamChatClient > ,
264266 nextProps : GiphyPropsWithContext < StreamChatClient > ,
265267) => {
@@ -289,18 +291,21 @@ const areEqual = <StreamChatClient extends ExtendableGenerics = DefaultStreamCha
289291
290292const MemoizedGiphy = React . memo ( GiphyWithContext , areEqual ) as typeof GiphyWithContext ;
291293
292- export type GiphyProps < StreamChatClient extends ExtendableGenerics = DefaultStreamChatGenerics > =
293- Partial <
294- Pick < MessageContextValue < StreamChatClient > , 'onLongPress' | 'onPressIn' > &
295- Pick < MessagesContextValue < StreamChatClient > , 'additionalTouchableProps' >
296- > & {
297- attachment : Attachment < StreamChatClient > ;
298- } ;
294+ export type GiphyProps <
295+ StreamChatClient extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
296+ > = Partial <
297+ Pick < MessageContextValue < StreamChatClient > , 'onLongPress' | 'onPressIn' > &
298+ Pick < MessagesContextValue < StreamChatClient > , 'additionalTouchableProps' >
299+ > & {
300+ attachment : Attachment < StreamChatClient > ;
301+ } ;
299302
300303/**
301304 * UI component for card in attachments.
302305 */
303- export const Giphy = < StreamChatClient extends ExtendableGenerics = DefaultStreamChatGenerics > (
306+ export const Giphy = <
307+ StreamChatClient extends DefaultStreamChatGenerics = DefaultStreamChatGenerics ,
308+ > (
304309 props : GiphyProps < StreamChatClient > ,
305310) => {
306311 const { handleAction, onLongPress, onPress, onPressIn, preventPress } =
0 commit comments