Volver al ranking

dohooo/react-native-reanimated-carousel

TypeScriptreact-native-reanimated-carousel.vercel.app

🎠 React Native swiper/carousel component, fully implemented using reanimated v2, support to iOS/Android/Web. (Swiper/Carousel)

react-nativecarouselandroidiosreanimatedinfinite-scrollswiperreact-native-carouselwebsnapreact-native-snapreact-native-swiper
Crecimiento de estrellas
Estrellas
3.4k
Forks
351
Crecimiento semanal
Issues
0
1k2k3k
ene 2023mar 2024may 2025jul 2026
Artefactosnpmnpm install react-native-reanimated-carousel
README

react-native-reanimated-carousel

platforms npm beta npm npm github issues github closed issues discord chat

v5 beta highlights

  • Sizing: style controls the container size; itemWidth/itemHeight control the page size (snap distance & animation progress).
  • Scroll offset shared value: use scrollOffsetValue (recommended). defaultScrollOffsetValue is deprecated but still supported.
  • Progress: onProgressChange supports both a callback and SharedValue<number>.
  • Pagination accessibility: Pagination.Basic and Pagination.Custom support paginationItemAccessibility for per-item a11y overrides.
  • Custom animation safety: customAnimation styles are sanitized and zIndex is normalized to finite integers.

Installation

v5 is currently available under the npm beta tag. Install it explicitly while public testing continues.

Expo projects should let Expo select compatible Reanimated and Worklets versions:

npx expo install react-native-reanimated-carousel@beta react-native-reanimated react-native-worklets react-native-gesture-handler

React Native Community CLI projects can install the same packages with their package manager:

yarn add react-native-reanimated-carousel@beta react-native-reanimated react-native-worklets react-native-gesture-handler

Follow the official setup instructions for Reanimated and Gesture Handler. When upgrading from v4, read the v5 migration guide.

Quick start

import * as React from "react";
import { Text, useWindowDimensions, View } from "react-native";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import Carousel from "react-native-reanimated-carousel";

const data = ["First", "Second", "Third"];

export default function App() {
  const { width } = useWindowDimensions();

  return (
    <GestureHandlerRootView style={{ flex: 1 }}>
      <View style={{ flex: 1, justifyContent: "center" }}>
        <Carousel
          style={{ width, height: 200 }}
          data={data}
          renderItem={({ item }) => (
            <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
              <Text>{item}</Text>
            </View>
          )}
        />
      </View>
    </GestureHandlerRootView>
  );
}

📊 Version Compatibility

Carousel Version Expo SDK React Native Reanimated Gesture Handler Worklets
v5 beta 54-57 validated 0.80+ (0.81, 0.83, 0.85, 0.86 validated) 4.1.0+ 2.9.0+ 0.5.0+
v4.x (EOL) 50-53 0.70.3+ 3.0.0+ 2.9.0+
v3.x (EOL) 47-49 0.66.0+ 2.0.0+ 2.0.0+

Reanimated and Worklets must be a compatible pair. Expo users should use expo install; other projects should consult the Reanimated compatibility table.

The Expo 54-57 matrix type-checks a packed consumer, exports Web, and builds Android. Native iOS and Android E2E currently run on Expo 54.

Sponsors

License

MIT

Repositorios relacionados
react/react-native

A framework for building native applications using React

C++MIT Licenseandroidapp-framework
reactnative.dev
126.2k25.2k
facebook/react-native

A framework for building native applications using React

C++MIT Licenseandroidapp-framework
reactnative.dev
120.9k24.5k
justjavac/free-programming-books-zh_CN

:books: 免费的计算机编程类中文书籍,欢迎投稿

GNU General Public License v3.0pythonjavascript
weibo.com/justjavac
117.7k28.2k
storybookjs/storybook

Storybook is the industry standard workshop for building, documenting, and testing UI components in isolation

TypeScriptnpmMIT Licensestorybookstyleguide
storybook.js.org
90.6k10.2k
enaqx/awesome-react

A collection of awesome things regarding React ecosystem

reactreact-native
74k7.6k
appwrite/appwrite

Appwrite® - complete cloud infrastructure for your web, mobile and AI apps. Including Auth, Databases, Storage, Functions, Messaging, Hosting, Realtime and more

TypeScriptnpmBSD 3-Clause "New" or "Revised" Licenseappwritedocker
appwrite.io
56.6k5.6k
laurent22/joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.

TypeScriptnpmOtherreact-nativenodejs
joplinapp.org
55.7k6.2k
dkhamsing/open-source-ios-apps

:iphone: Collaborative List of Open-Source iOS Apps

Creative Commons Zero v1.0 Universaliosswift
51.3k6k
expo/expo

An open-source framework for making universal native apps with React. Expo runs on Android, iOS, and the web.

TypeScriptnpmMIT Licensemobileexpo
docs.expo.dev
50.9k13.1k
react-hook-form/react-hook-form

📋 React Hooks for form state management and validation (Web + React Native)

TypeScriptnpmMIT Licensetypescriptreact-hooks
react-hook-form.com
44.8k2.5k
sudheerj/reactjs-interview-questions

List of top 500 ReactJS Interview Questions & Answers....Coding exercise questions are coming soon!!

JavaScriptnpmMIT Licensereactjsreact-router
44.7k10.4k
mattermost/mattermost

Mattermost is an open source platform for secure collaboration across the entire software development lifecycle..

TypeScriptnpmOthercollaborationmattermost
mattermost.com
38.5k8.9k