| Demo |
|---|
A React Native proof-of-concept for nested comments with SVG connecting lines and animated expand/collapse, built with Expo.
react-native-svg for connecting linesdate-fns for timestampsnpm install
npx expo start
Open in iOS Simulator, Android Emulator, or Expo Go.
components/comments/
ThreadlineGroup.tsx # SVG gutter (spine + elbows) + content rows
CommentThread.tsx # Recursive thread, expand/collapse state
PostComment.tsx # Comment card, reports avatar anchor Y for line drawing
CommentBody.tsx # Dark bubble with name + content
PostCommentName.tsx # Author name, badges, timestamp
PostCommentAvatar.tsx # Circular avatar image
CommentFooter.tsx # Love / Reply buttons
RepliesToggleRow.tsx # "View N replies" toggle
types.ts # Comment + AuthorProfile types
mockData.ts # 4-level nested mock data
$ claude mcp add react-native-nested-comments-with-lines \
-- python -m otcore.mcp_server <graph>