Layout & Structure
Rearrange, add, or remove UI elements directly in the source files.Adding Elements
Add Custom Header
Add Custom Footer
Add a Banner Between Form and Feed
Removing Elements
Remove Vote Buttons
Remove Reply Functionality
Remove Moderation Options
Delete or comment out the action menu trigger insingle-comment.tsx:
Rearranging Elements
Move Vote Buttons Above Comment Body
Move Sort Controls
Move<SortByButton /> to the top of the section instead of inline with the feed.
In threaded comments on React Native and Expo, <SortByTrigger /> works anywhere inside ThreadedComments, so you can also move it out of ThreadedCommentSection, into your screen.
Modifying Spacing
Inline Styles:GIF Picker Placement
Threaded Comments
The GIF picker always covers the whole screen.- React — it covers the browser window. The section has no fixed height of its own to cover: it is as tall as its comments, and the page scrolls.
- React Native and Expo — it opens in a React Native
Modal, so it covers the whole screen whereverThreadedCommentInputsits, the navigation header included, and Android’s back button closes it. Its content is inset from the notch and the home indicator with React Native’sSafeAreaView, which applies insets on iOS only. If your app usesreact-native-safe-area-context, swap in itsSafeAreaViewingiphy-container.tsxto get insets on Android too.
Social Comments
The GIF picker opens over the comment section and covers all of it: the comment list and the form. To make it cover the whole screen instead, passgifPickerFullScreen to the section:
false. It works the same on React, React Native and Expo.
React
The picker fills the section’s outer element, which is positioned (relative), so it is as tall as the section. Give the section a bounded height (it fills its parent and scrolls the comment list inside) to keep the picker’s search field on screen in a long thread.
If you compose your own layout from the feed and the form, wrap them in a positioned element, or the picker will cover the nearest positioned ancestor instead. The prop goes on the form:
React Native and Expo
The picker fills the view it is rendered in, and the form renders it. In the section, the form is a direct child of the section’s root view, so the picker covers the whole section. The section’s border around the form is passed to the form ascontainerStyle (containerClassName in the Tailwind variant) rather than wrapped around it, because a wrapping view would become the area the picker covers.
With gifPickerFullScreen, the picker opens in a React Native Modal: it covers the whole screen wherever the section sits in your app (inside a bottom sheet, for example), and Android’s back button closes it. Its content is inset with React Native’s SafeAreaView, as in threaded comments above.
If you compose your own layout, render the form as a direct child of the view the picker should cover. The prop goes on the form:
Component Hierarchy
Understanding the component tree helps you know which file to edit: Threaded Comments (React):Next Steps
Adding Features
Add custom functionality
Colors & Theming
Customize colors
Advanced
Advanced customization techniques
File Structure
Threaded comments file organization

