MCPcopy Index your code
hub / github.com/efstathiosntonas/react-native-nested-comments-with-lines

github.com/efstathiosntonas/react-native-nested-comments-with-lines @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
23 symbols 58 edges 14 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

react-native-nested-comments-with-lines

Demo

A React Native proof-of-concept for nested comments with SVG connecting lines and animated expand/collapse, built with Expo.

Features

  • Nested comments up to 4 levels deep
  • SVG spine + bezier elbow connecting lines between parent and child comments
  • Tap the gutter line or "View N replies" to expand/collapse
  • Author badge, timestamps, Love/Reply actions

Stack

  • Expo 55 / React Native 0.83
  • React 19
  • react-native-svg for connecting lines
  • date-fns for timestamps

Run

npm install
npx expo start

Open in iOS Simulator, Android Emulator, or Expo Go.

Structure

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

Extension points exported contracts — how you extend this code

CommentThreadProps (Interface)
(no doc)
components/comments/CommentThread.tsx

Core symbols most depended-on inside this repo

clamp
called by 3
components/comments/ThreadlineGroup_NO_COMMENTS.tsx
clamp
called by 3
components/comments/ThreadlineGroup.tsx
getAvatarSize
called by 2
components/comments/PostCommentAvatar.tsx
getThreadlineColumnWidth
called by 2
components/comments/ThreadlineGroup.tsx
getThreadlineColumnWidth
called by 1
components/comments/ThreadlineGroup_NO_COMMENTS.tsx
getThreadlineConnectorX
called by 1
components/comments/ThreadlineGroup_NO_COMMENTS.tsx
computePaths
called by 1
components/comments/ThreadlineGroup_NO_COMMENTS.tsx
getThreadlineConnectorX
called by 1
components/comments/ThreadlineGroup.tsx

Shape

Function 22
Interface 1

Languages

TypeScript100%

Modules by API surface

components/comments/ThreadlineGroup_NO_COMMENTS.tsx5 symbols
components/comments/ThreadlineGroup.tsx5 symbols
components/comments/CommentThread.tsx3 symbols
components/comments/RepliesToggleRow.tsx2 symbols
components/comments/PostCommentAvatar.tsx2 symbols
components/comments/CommentFooter.tsx2 symbols
components/comments/PostCommentName.tsx1 symbols
components/comments/PostComment.tsx1 symbols
components/comments/CommentBody.tsx1 symbols
App.tsx1 symbols

For agents

$ claude mcp add react-native-nested-comments-with-lines \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page