Documentation
Scroll

Scroll

This is View component with scroll prop set to true by default to enable scrollbar for overflowing content.

Refer to View Props for reference.

Because of browser quirks related to flex layout, View with scroll mode enabled will have an extra inner div element that wraps children content.

When to Use Scroll View?

Scroll component is useful when you want:

  1. Scrollable content within a predefined container (not the entire browser or app screen)
  2. Multiple scrolling sections in one screen, each having a scrollbar in different directions
  3. To make sure content is accessible in all screen sizes for a fully responsive design.

Examples

Scroll Directions

Default - vertical scrollbar
12345678910111213
Row direction - horizontal scrollbar
12345678910111213
Reversed order of items for row layout
12345678910111213
RTL - right to left scroll direction
12345678910111213
RTL - in column layout
12345678910111213
Two scrollbars for content overflow in all directions
12345678910111213
14151617181920212223242526

Scrollbar Customisation

Restrict scrollbar to layout direction
12345678910111213
14151617181920212223242526
Left scrollbar for vertical layout with horizontal overflow
12345678910111213
14151617181920212223242526
Right scrollbar in RTL direction
12345678910111213
14151617181920212223242526