Installation
Prerequisites
Reanimated Tab View requires the following peer dependencies:
- react-native-reanimated (>= 3.0.0)
- react-native-gesture-handler (>= 2.9.0)
Make sure you have them installed and configured in your project before proceeding. Follow the official installation guides:
Install the package
yarn add reanimated-tab-view
Or using npm:
npm install reanimated-tab-view
Wrap your app with GestureHandlerRootView
Ensure your app is wrapped with GestureHandlerRootView from react-native-gesture-handler:
import { GestureHandlerRootView } from 'react-native-gesture-handler';
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
{/* Your app content */}
</GestureHandlerRootView>
);
}
Platform support
| Platform | Supported |
|---|---|
| iOS | Yes |
| Android | Yes |
| Web | Partial |
Collapsible headers are supported on iOS and Android.