File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,14 +66,14 @@ const Bubble = <TMessage extends IMessage = IMessage>(props: BubbleProps<TMessag
6666
6767 // eslint-disable-next-line @typescript-eslint/no-explicit-any
6868 ; ( context as any ) . actionSheet ( ) . showActionSheetWithOptions (
69- {
70- options,
71- cancelButtonIndex,
72- } ,
73- ( buttonIndex : number ) => {
74- console . log ( 'onLongPress' , { buttonIndex } )
75- }
76- )
69+ {
70+ options,
71+ cancelButtonIndex,
72+ } ,
73+ ( buttonIndex : number ) => {
74+ console . log ( 'onLongPress' , { buttonIndex } )
75+ }
76+ )
7777 } , [
7878 currentMessage ,
7979 context ,
Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ import { isSameDay } from '../utils'
2727
2828export * from './types'
2929
30- const AnimatedFlatList = Animated . createAnimatedComponent ( FlatList )
30+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
31+ const AnimatedFlatList = Animated . createAnimatedComponent ( FlatList ) as React . ComponentType < any >
3132
3233function MessageContainer < TMessage extends IMessage = IMessage > ( props : MessageContainerProps < TMessage > ) {
3334 const {
@@ -353,7 +354,7 @@ function MessageContainer<TMessage extends IMessage = IMessage> (props: MessageC
353354 >
354355 < AnimatedFlatList
355356 extraData = { extraData }
356- ref = { forwardRef as React . Ref < FlatList < unknown > > }
357+ ref = { forwardRef }
357358 keyExtractor = { keyExtractor }
358359 data = { messages }
359360 renderItem = { renderItem }
Original file line number Diff line number Diff line change 1- import React , { Component , RefObject } from 'react'
1+ import React , { RefObject } from 'react'
22import {
33 FlatListProps ,
44 StyleProp ,
55 ViewStyle ,
6+ FlatList ,
67} from 'react-native'
78
89import { LoadEarlierProps } from '../LoadEarlier'
910import { MessageProps } from '../Message'
10- import { User , IMessage , Reply , DayProps } from '../types'
11+ import { User , IMessage , Reply , DayProps } from '../types'
1112import { ReanimatedScrollEvent } from 'react-native-reanimated/lib/typescript/hook/commonTypes'
12- import { FlatList } from 'react-native-reanimated/lib/typescript/Animated'
13- import { AnimateProps } from 'react-native-reanimated'
1413
15- export type ListViewProps < TMessage extends IMessage = IMessage > = Partial < FlatListProps < TMessage > > ;
14+ export type ListViewProps < TMessage extends IMessage = IMessage > = Partial < FlatListProps < TMessage > >
1615
17- export type AnimatedList < TMessage > = Component < AnimateProps < FlatListProps < TMessage > > , unknown , unknown > & FlatList < FlatListProps < TMessage > >
16+ export type AnimatedList < TMessage > = FlatList < TMessage >
1817
1918export interface MessageContainerProps < TMessage extends IMessage = IMessage > {
2019 forwardRef ?: RefObject < AnimatedList < TMessage > >
You can’t perform that action at this time.
0 commit comments