Components

ScrollShadow

ScrollView wrapper with animated gradient shadows indicating scrollable content.

iOSAndroid
Preview ScrollShadow on your device

Scan with Expo Go

Download Expo Go, then scan the QR code to preview native components.

Installation

pnpm dlx @docyrus/cli add @docyrus/rn-scroll-shadow
Required Packages(1 package)
pnpm add react-native-reanimated

Usage

import { ScrollShadow } from '@/components/docyrus-native/scroll-shadow';

<ScrollShadow className="h-64">
  {/* scrollable content */}
</ScrollShadow>

API Reference

PropTypeDefaultDescription
childrenReactNode—Scrollable content
orientation'horizontal' | 'vertical''vertical'Scroll direction
shadowSizenumber40Shadow gradient size in px
classNamestring—Additional classes

All ScrollViewProps are also accepted.

Type Exports

TypeDescription
ScrollShadowPropsProps for ScrollShadow
ScrollShadowOrientation'horizontal' | 'vertical'

On this page