react-native-reanimated-accordion is a React Native library providing a simple, animated expandable section using `react-native-reanimated` for smooth transitions. The current stable version is 0.6.2. The project shows an active development cadence, with several releases in early 2026, though with a prior gap since 2024. Key differentiators include its reliance on Reanimated v4 for performance, high customizability, and an option (`renderWhenCollapsed={false}`) to prevent the rendering of collapsed content, which can improve performance for complex components by reducing initial rendering time and memory usage. It is specifically designed for mobile applications on iOS and Android.
npm install react-native-reanimated-animated-accordionVerified import paths — ran on the pinned version, not inferred.
This example demonstrates how to integrate the Expandable component, manage its expanded state, and customize animation properties like duration and easing. It also shows the `renderWhenCollapsed` prop.
Upgrade your React Native project to the New Architecture or downgrade the `react-native-reanimated-animated-accordion` package to `0.3.0` if sticking with the Old Architecture.
Ensure `react-native-reanimated` is updated to a compatible version (e.g., `>=4.0.0`) in your `package.json` and reinstall dependencies.
If child component state needs to persist, either avoid `renderWhenCollapsed={false}` or lift the state up to a parent component that remains mounted.Always import `Easing` from `react-native-reanimated` and use its provided functions, e.g., `Easing.out(Easing.cubic)`.
Install `react-native-reanimated` via `npm install react-native-reanimated` or `yarn add react-native-reanimated` and ensure it's properly configured for your React Native project (follow Reanimated's installation guide).
Update `react-native-reanimated` to version `4.0.0` or newer and verify its setup in `babel.config.js` and `MainApplication.java`/`AppDelegate.mm`.
If on version >=0.4.0, ensure your React Native project is fully on the New Architecture (Fabric). Clean your build caches (`yarn start --reset-cache`, `cd ios && pod deintegrate && pod install`, `cd android && ./gradlew clean`).