npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

react-native-tabs-reanimated

v1.1.2

Published

Customizable, animated tabs component for React Native built with Reanimated v3/v4

Readme

🎬 React Native Tabs Reanimated

npm version License: MIT Downloads TypeScript React Native Reanimated

React Native Tabs Reanimated is a highly customizable, animated tab component for React Native applications. Built with React Native Reanimated v3/v4 and TypeScript, it provides smooth 60fps transitions, multi-select capabilities, and a beautiful native feel.

🚀 Fully compatible with React Native 0.81+ and Reanimated v3/v4

📈 338+ weekly downloads and growing! Join the developers already using this library in production.


✨ Features

  • 🎨 Highly Customizable - Colors, styles, icons, and animations
  • Reanimated v3/v4 Compatible - Smooth 60fps animations with latest Reanimated
  • 👆 Multi-Select Support - Allow single or multiple active tabs
  • 📜 Scrollable/Fixed Modes - Horizontal scroll or wrap layout
  • 🎭 Custom Icons - Use Expo Vector Icons or custom components
  • 🎯 TypeScript - Full type safety included
  • Performance Optimized - Memoized components for efficiency
  • 🧩 Flexible API - Extensive props for customization
  • 📱 React Native 0.81+ - Compatible with latest React Native versions

🎥 Live Demo

Showcasing different configurations: icons with colors, multi-select mode, text-only tabs, and various styling options

What you can see:

  • 🎨 Colorful tabs with icons and custom background colors
  • 👆 Multi-select mode with close icons (×) on selected tabs
  • 📝 Text-only tabs with clean minimal design
  • 🎯 Mixed configurations showing the flexibility of the API
  • 🌈 Custom styling with different color schemes

📦 Installation

npm install react-native-tabs-reanimated react-native-reanimated react-native-gesture-handler

with yarn:

yarn add react-native-tabs-reanimated react-native-reanimated react-native-gesture-handler

or with bun:

bun add react-native-tabs-reanimated react-native-reanimated react-native-gesture-handler

Peer Dependencies

Make sure you have the following peer dependencies installed:

# With npm
npm install react-native-reanimated react-native-gesture-handler @expo/vector-icons

# With yarn
yarn add react-native-reanimated react-native-gesture-handler @expo/vector-icons

# With bun
bun add react-native-reanimated react-native-gesture-handler @expo/vector-icons

Note: If you're using Expo, these dependencies are usually pre-installed.


🚀 Quick Start

import Tabs from "react-native-tabs-reanimated";

const tabs = [
  { id: 1, name: "Primary", icon: "email", color: "#b3c6ff" },
  { id: 2, name: "Social", icon: "account-group", color: "#b2f0e6" },
  { id: 3, name: "Promotions", icon: "tag", color: "#ffe0b2" },
];

export default function App() {
  return <Tabs tabs={tabs} scrollable defaultActiveIndex={0} />;
}

📖 Usage Examples

Basic Single Selection

import Tabs from "react-native-tabs-reanimated";

const tabs = [
  { id: 1, name: "Home", icon: "home", color: "#b3c6ff" },
  { id: 2, name: "Profile", icon: "account", color: "#b2f0e6" },
  { id: 3, name: "Settings", icon: "cog", color: "#ffe0b2" },
];

<Tabs
  tabs={tabs}
  defaultActiveIndex={0}
  onActiveChange={(actives) => console.log("Active tabs:", actives)}
/>;

Multi-Select Mode

<Tabs
  tabs={tabs}
  isMultiSelector
  defaultActiveIndex={0}
  onActiveChange={(actives) => console.log("Selected tabs:", actives)}
/>

Custom Colors

<Tabs
  tabs={tabs}
  activesColor="lightblue"
  inactivesColor="lightgrey"
  tintColor="#000"
/>

Show Text Always & Close Icons

<Tabs tabs={tabs} showTexts showCloseIcon activesColor="lightgreen" />

Custom Animations

import { FadeInUp, FadeOutDown } from "react-native-reanimated";

<Tabs
  tabs={tabs}
  textAnimation={{
    entering: FadeInUp.springify(),
    exiting: FadeOutDown.springify(),
  }}
/>;

Non-Scrollable (Wrap Layout)

<Tabs tabs={tabs} scrollable={false} isMultiSelector showTexts />

Custom Tab Styles

<Tabs
  tabs={tabs}
  tabStyle={{
    borderRadius: 16,
    paddingVertical: 12,
    paddingHorizontal: 20,
  }}
  containerStyle={{
    padding: 16,
    backgroundColor: "#f5f5f5",
  }}
/>

🛠️ API Reference

Tabs Component Props

| Prop | Type | Default | Description | | --------------------- | ----------------------------- | ------------------------------------------------ | --------------------------------------------- | | tabs | TabType[] | required | Array of tab objects | | defaultActiveIndex | number | 0 | Initial active tab index | | isMultiSelector | boolean | false | Enable multiple tab selection | | scrollable | boolean | true | Enable horizontal scrolling | | showTexts | boolean | false | Always show tab text (not just active) | | showCloseIcon | boolean | false | Show close icon on active tabs | | activesColor | string | 'white' | Background color for active tabs | | inactivesColor | string | 'grey' | Background color for inactive tabs | | tintColor | string | '#000' | Icon and text color | | containerStyle | StyleProp<ViewStyle> | undefined | Custom container styles | | tabStyle | StyleProp<ViewStyle> | undefined | Custom individual tab styles | | layoutAnimation | ComplexAnimationBuilder | LinearTransition.springify() | Layout transition animation | | textAnimation | { entering?, exiting? } | { entering: FadeInLeft, exiting: FadeOutLeft } | Text appearance animations | | onActiveChange | (actives: number[]) => void | undefined | Callback when active tabs change | | scrollProps | ScrollViewProps | undefined | Additional ScrollView props (when scrollable) | | viewProps | ViewProps | undefined | Additional View props (when not scrollable) | | textProps | TextProps | undefined | Custom text props | | expoVectorIconProps | ExpoVectorIconsProps | undefined | Custom icon props | | customCloseIcon | React.ReactNode | undefined | Custom close icon component |

TabType Interface

interface TabType {
  id: number;
  name: string;
  icon?: string; // Material Community Icons name
  color?: string; // Custom background color
  customIcon?: ReactNode; // Custom icon component
}

🎨 Customization

Using Custom Icons

You can use custom React components as icons:

import { View } from "react-native";

const tabs = [
  {
    id: 1,
    name: "Custom",
    customIcon: (
      <View style={{ width: 24, height: 24, backgroundColor: "red" }} />
    ),
    color: "#b3c6ff",
  },
];

<Tabs tabs={tabs} />;

Advanced Styling

<Tabs
  tabs={tabs}
  containerStyle={{
    padding: 24,
    backgroundColor: "#f8f9fa",
    borderRadius: 12,
  }}
  tabStyle={{
    borderRadius: 20,
    paddingVertical: 10,
    paddingHorizontal: 18,
    shadowColor: "#000",
    shadowOffset: { width: 0, height: 2 },
    shadowOpacity: 0.1,
    shadowRadius: 4,
    elevation: 3,
  }}
  textProps={{
    style: {
      fontWeight: "600",
      fontSize: 14,
    },
  }}
/>

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🙏 Acknowledgments


📱 Requirements

  • React Native >= 0.81 (fully tested and optimized)
  • React >= 18.0
  • React Native Reanimated >= 3.0 (v3/v4 supported)
  • React Native Gesture Handler >= 2.0
  • Expo (optional but recommended)

🐛 Issues

Found a bug? Please open an issue with a detailed description.


👨‍💻 Author

Guillermo Velasco


⭐ Show your support

Give a ⭐️ if this project helped you!