GuidesExpo Application ServicesAPI Reference
ArchiveExpo SnackDiscordForumsChangelog




react-native-pager-view exposes a component that provides the layout and gestures to scroll between pages of content, like a carousel.

Platform Compatibility

Android DeviceAndroid EmulatoriOS DeviceiOS SimulatorWeb


npx expo install react-native-pager-view

If you're installing this in a bare React Native app, you should also follow these additional installation instructions.


See full documentation at callstack/react-native-pager-view.

Basic Example

import React from 'react';
import { StyleSheet, View, Text } from 'react-native';
import PagerView from 'react-native-pager-view';

const MyPager = () => {
  return (
    <View style={{ flex: 1 }}>
      <PagerView style={styles.viewPager} initialPage={0}>
        <View style={} key="1">
          <Text>First page</Text>
          <Text>Swipe ➡️</Text>
        <View style={} key="2">
          <Text>Second page</Text>
        <View style={} key="3">
          <Text>Third page</Text>

const styles = StyleSheet.create({
  viewPager: {
    flex: 1,
  page: {
    justifyContent: 'center',
    alignItems: 'center',

export default MyPager;
  • Ask a question on the forums about ViewPager

  • View open bug reports for ViewPager

  • Edit this page

Was this doc helpful?