A Twitter-like or Reddit-like post & reply system created by combining components from src/components/thread
and src/state/thread
.
Users can post various content:
Built from modular components:
Thread.tsx
- Container for multiple posts (root-level)ThreadItem.tsx
- Renders a single post with optional repliesThreadComposer.tsx
- For composing new posts or repliesThreadEditModal.tsx
- In-line editing of text-only post sectionsPostHeader
PostBody
PostFooter
PostCTA
RetweetModal.tsx
(modal to quote-retweet or retweet a post)RetweetPreview.tsx
(inline preview of a retweeted post)Utilizes Redux for state handling:
thread.theme.ts
thread.styles.ts
thread.types.ts
onPressPost
onPressUser
ctaButtons
onRefresh
disableReplies
prop for Thread
or ThreadItem
to hide nested replies.disableTabs
option: lock users into a single tab (e.g. “Swap & Share”).