Skip to content

Commit 0378595

Browse files
fixing conflict resolution issues
1 parent 34fe943 commit 0378595

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

example/src/MessageBubble.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { Message } from './utils';
44

55
type Props = {
66
item: Message;
7+
index: number;
78
};
89

910
export const MessageBubble: React.FC<Props> = ({ item, index }) => {

example/src/MessageListExample.tsx

-7
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ import { FlatList } from 'react-native-bidirectional-infinite-scroll';
55
import { MessageBubble } from './MessageBubble';
66
import { Message, queryMoreMessages } from './utils';
77

8-
const ItemSeparatorComponent = () => <View style={{
9-
borderBottomColor: 'black',
10-
height: 0,
11-
borderBottomWidth: 1,
12-
marginVertical: 10
13-
}} />;
14-
158
const App = () => {
169
const [messages, setMessages] = useState<Array<Message>>([]);
1710
const flRef = useRef(null);

src/types.ts

-5
Original file line numberDiff line numberDiff 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-
149
export type Props<T = unknown> = Omit<
1510
FlatListProps<T>,
1611
'maintainVisibleContentPosition'

0 commit comments

Comments
 (0)