Skip to content

Commit

Permalink
date support for custom bubbles
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammedKpln committed Feb 21, 2022
1 parent 0c10664 commit 2e30f4f
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,20 @@ export const List = React.forwardRef(
(data: IMessage, withDate?: boolean) => {
if (rowRendererProp) {
return (
<AnimatedWrapper entering={FadeInDown}>
<SwipeableBubble onReply={propsContext.onReply}>
{rowRendererProp(data)}
</SwipeableBubble>
</AnimatedWrapper>
<View>
{withDate && (
<RenderDate
date={data.createdAt}
{...propsContext.renderDateProps}
/>
)}

<AnimatedWrapper entering={FadeInDown}>
<SwipeableBubble onReply={propsContext.onReply}>
{rowRendererProp(data)}
</SwipeableBubble>
</AnimatedWrapper>
</View>
);
}

Expand Down

0 comments on commit 2e30f4f

Please sign in to comment.