File tree 3 files changed +1
-12
lines changed
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';
4
4
5
5
type Props = {
6
6
item : Message ;
7
+ index : number ;
7
8
} ;
8
9
9
10
export 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';
5
5
import { MessageBubble } from './MessageBubble' ;
6
6
import { Message , queryMoreMessages } from './utils' ;
7
7
8
- const ItemSeparatorComponent = ( ) => < View style = { {
9
- borderBottomColor : 'black' ,
10
- height : 0 ,
11
- borderBottomWidth : 1 ,
12
- marginVertical : 10
13
- } } /> ;
14
-
15
8
const App = ( ) => {
16
9
const [ messages , setMessages ] = useState < Array < Message > > ( [ ] ) ;
17
10
const flRef = useRef ( null ) ;
Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ export type WebFlatListProps<T> = Props<T> & {
6
6
onScroll : ( event : React . UIEvent < 'div' , UIEvent > ) => void ;
7
7
} ;
8
8
9
- export type WebFlatListProps < T > = Props < T > & {
10
- ListEmptyComponent : React . ComponentType ;
11
- onScroll : ( event : React . UIEvent < 'div' , UIEvent > ) => void ;
12
- } ;
13
-
14
9
export type Props < T = unknown > = Omit <
15
10
FlatListProps < T > ,
16
11
'maintainVisibleContentPosition'
You can’t perform that action at this time.
0 commit comments