Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixing conflict resolution issues
  • Loading branch information
vishalnarkhede committed Jul 17, 2021
commit 03785954d0af3f1326a3aa329875247c1ab78c0e
1 change: 1 addition & 0 deletions example/src/MessageBubble.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import type { Message } from './utils';

type Props = {
item: Message;
index: number;
};

export const MessageBubble: React.FC<Props> = ({ item, index }) => {
Expand Down
7 changes: 0 additions & 7 deletions example/src/MessageListExample.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ import { FlatList } from 'react-native-bidirectional-infinite-scroll';
import { MessageBubble } from './MessageBubble';
import { Message, queryMoreMessages } from './utils';

const ItemSeparatorComponent = () => <View style={{
borderBottomColor: 'black',
height: 0,
borderBottomWidth: 1,
marginVertical: 10
}} />;

const App = () => {
const [messages, setMessages] = useState<Array<Message>>([]);
const flRef = useRef(null);
Expand Down
5 changes: 0 additions & 5 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ export type WebFlatListProps<T> = Props<T> & {
onScroll: (event: React.UIEvent<'div', UIEvent>) => void;
};

export type WebFlatListProps<T> = Props<T> & {
ListEmptyComponent: React.ComponentType;
onScroll: (event: React.UIEvent<'div', UIEvent>) => void;
};

export type Props<T = unknown> = Omit<
FlatListProps<T>,
'maintainVisibleContentPosition'
Expand Down