ThemeScroller
A scrollable container that adapts to the current theme.
ThemeScroller
A themed ScrollView component that provides consistent styling and behavior with automatic light/dark mode support.
Import
Features
- Automatic light/dark mode adaptation
- Hidden vertical scroll indicator
- Built-in bottom spacing
- Optional header space for fixed headers
- Support for animated scrolling events
- Customizable via Tailwind classes
Props
| Prop | Type | Default | Description | 
|---|---|---|---|
| children | React.ReactNode | Required | Content to display | 
| className | string | '' | Additional Tailwind classes | 
| onScroll | Function | — | Scroll event handler | 
| contentContainerStyle | any | — | Styles for content container | 
| scrollEventThrottle | number | 16 | Scroll event throttle rate | 
| headerSpace | boolean | false | Add space for fixed header | 
| ...props | ScrollViewProps | — | Additional ScrollView props |