react-native-swiper is a widely used, feature-rich swiper/carousel component designed for React Native applications. As of its latest stable release, v1.6.0, it provides a highly customizable solution for displaying paginated content, supporting both iOS and Android platforms. The library focuses on providing a smooth user experience with features like autoplay, infinite looping, flexible pagination dots, and lazy loading for performance optimization via `loadMinimal`. It supports TypeScript out-of-the-box, shipping with correct type definitions, and has recently moved away from `ViewPagerAndroid` to `ScrollView` for improved compatibility and reduced dependency footprint. The project maintains an active development pace with consistent bug fixes and new features, though no strict release cadence is formally documented. Its key differentiators include extensive prop-based customization for styling and behavior, robust platform support, and a history of addressing common React Native carousel challenges.
npm install react-native-swiperVerified import paths — ran on the pinned version, not inferred.
This example demonstrates a basic `Swiper` component with three slides, infinite loop, autoplay, and navigation buttons.
Replace `style={...}` with `containerStyle={...}` when targeting the swiper's outer container on Android.Run `npm install --save react-native-swiper@next` and consider clearing `node_modules` and reinstalling to ensure the old `ViewPagerAndroid` reference is gone.
Upgrade to v1.5.5 or newer. If stuck on an older version, ensure `prop-types` is installed and properly configured, or be aware of console warnings related to deprecated PropTypes usage.
Upgrade to `react-native-swiper` v1.6.0 or newer. If upgrading is not immediately possible, carefully manage parent component re-renders that might affect the Swiper's props or state.
For optimal module compatibility, especially in modern React Native projects, ensure you are on `react-native-swiper` v1.6.0 or later.
Upgrade `react-native-swiper` to version 1.5.12 or newer. Ensure your component structure allows for proper ref forwarding if you are wrapping the `Swiper` component.
Upgrade `react-native-swiper` to v1.5.13 or newer, which includes fixes for recalculating dimensions correctly on layout changes and device rotations.
Upgrade `react-native-swiper` to version 1.5.10 or newer to resolve the `index` prop initialization and update issues on iOS.