Back to Tamagui

ScrollView

code/tamagui.dev/data/docs/components/scroll-view/2.0.0.mdx

1.144.4822 B
Original Source
<HeroContainer> <ScrollViewDemo /> </HeroContainer>
tsx

<Highlights features={[ All the features of React Native ScrollView., Adds all the style properties of Tamagui., ]} />

Installation

ScrollView is already installed in tamagui, or you can install it independently:

bash
npm install @tamagui/scroll-view

Usage

tsx
import { ScrollView, YStack, ListItem } from 'tamagui'

export default () => (
  <ScrollView>
    <YStack>
      <ListItem>1</ListItem>
      <ListItem>2</ListItem>
      <ListItem>3</ListItem>
      <ListItem>4</ListItem>
    </YStack>
  </ScrollView>
)

API Reference

ScrollView

See React Native ScrollView and Tamagui style props.