File tree Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Expand file tree Collapse file tree 3 files changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import type { Message } from './utils';
44
55type Props = {
66 item : Message ;
7+ index : number ;
78} ;
89
910export const MessageBubble : React . FC < Props > = ( { item, index } ) => {
Original file line number Diff line number Diff line change @@ -5,13 +5,6 @@ import { FlatList } from 'react-native-bidirectional-infinite-scroll';
55import { MessageBubble } from './MessageBubble' ;
66import { Message , queryMoreMessages } from './utils' ;
77
8- const ItemSeparatorComponent = ( ) => < View style = { {
9- borderBottomColor : 'black' ,
10- height : 0 ,
11- borderBottomWidth : 1 ,
12- marginVertical : 10
13- } } /> ;
14-
158const App = ( ) => {
169 const [ messages , setMessages ] = useState < Array < Message > > ( [ ] ) ;
1710 const flRef = useRef ( null ) ;
Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ export type WebFlatListProps<T> = Props<T> & {
66 onScroll : ( event : React . UIEvent < 'div' , UIEvent > ) => void ;
77} ;
88
9- export type WebFlatListProps < T > = Props < T > & {
10- ListEmptyComponent : React . ComponentType ;
11- onScroll : ( event : React . UIEvent < 'div' , UIEvent > ) => void ;
12- } ;
13-
149export type Props < T = unknown > = Omit <
1510 FlatListProps < T > ,
1611 'maintainVisibleContentPosition'
You can’t perform that action at this time.
0 commit comments