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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mindinventory/react-native-tab-bar-interaction

v3.0.0

Published

A tabbar component for React Native

Downloads

295

Readme

React Native Tabbar Interaction

Beautiful Tabbar Interaction with Sliding Inset FABs, made for React Native with RTL support.

Check it out on Béhance (https://www.behance.net/gallery/68043143/Tab-bar-interaction-with-animated-icons)

Check it out on Dribbble (https://dribbble.com/shots/4844696-Tab-bar-interaction-with-animated-icons)

Installation

using npm:

npm install @mindinventory/react-native-tab-bar-interaction

using yarn:

yarn add @mindinventory/react-native-tab-bar-interaction

Dependencies

  • react-native-reanimated

Supported platform

  • Android
  • Ios

Usage


import Tabbar from "@mindinventory/react-native-tab-bar-interaction";
...

const tabs = [
  {
    name: 'Home',
    activeIcon: <Icon name="home" color="#fff" size={25} />,
    inactiveIcon: <Icon name="home" color="#4d4d4d" size={25} />
  },
  {
    name: 'list',
    activeIcon: <Icon name="list-ul" color="#fff" size={25} />,
    inactiveIcon: <Icon name="list-ul" color="#4d4d4d" size={25} />
  },
  {
    name: 'camera',
    activeIcon: <Icon name="camera" color="#fff" size={25} />,
    inactiveIcon: <Icon name="camera" color="#4d4d4d" size={25} />
  },
  {
    name: 'Notification',
    activeIcon: <Icon name="bell" color="#fff" size={25} />,
    inactiveIcon: <Icon name="bell" color="#4d4d4d" size={25} />
  },
  {
    name: 'Profile',
    activeIcon: <Icon name="user" color="#fff" size={25} />,
    inactiveIcon: <Icon name="user" color="#4d4d4d" size={25} />
  },

];
...

return (
  <Tabbar
    tabs={tabs}       
    containerWidth={350}    
    onTabChange={(tab: TabsType, index: number) => console.log('Tab changed')}
  />
);

Component props

Tabbar

| prop | value | required/optional | description | | -------------------------- | -------- | ----------------- | -------------------------------------------------------------------- | | tabs | array | required | It is user for showing icon and label. | | tabBarContainerBackground | string | optional | Use for change tabBar container color. |
| onTabChange | function | required | Use to perform any action when click on tab. | | containerBottomSpace | number | optional | Use to add space between tabBar container and from bottom of screen. | | containerWidth | number | required | Use for set width of tabBar container | | containerTopRightRadius | number | optional | Use for add top right radius on tabBar container | | containerTopLeftRadius | number | optional | Use for add top left radius on tabBar container | | containerBottomLeftRadius | number | optional | Use for add bottom left radius on tabBar container | | containerBottomRightRadius | number | optional | Use for add bottom right radius on tabBar container | | defaultActiveTabIndex | number | optional | Use to set default active tab | | transitionSpeed | number | optional | Use to set transition speed | | circleFillColor | string | optional | Use to set background color for circle |

tabs

| properties | value | required/optional | description | | ------------ | --------- | ----------------- | -------------------------------------------- | | name | string | required | use for showing tab label. | | activeIcon | component | required | Use for showing tab active icon/image. | | inactiveIcon | component | required | Use for showing tab inactiveIcon icon/image. |

LICENSE!

React-native-tabbar-interaction is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our component. Just send an email to [email protected] And do let us know if you have any questions or suggestion regarding our work.