🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

rn-shiny-tab-bar

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-shiny-tab-bar

Custom animated shiny-tab-bar for react-native.

1.0.2
latest
Source
npm
Version published
Maintainers
1
Created
Source

rn-shiny-tab-bar

Custom animated shiny-tab-bar for react-native.

preview

💾 Installation

yarn add rn-shiny-tab-bar

or

npm install rn-shiny-tab-bar

⚒️ Usage

<Tab.Navigator
  tabBar={(props) => {
    return <ShinyTabBar {...props} />;
  }}
>
  <Tab.Screen
    name="Dashboard"
    component={TestScreen}
    options={{
      tabBarIcon: <SimpleLineIcons name="grid" size={20}></SimpleLineIcons>,
      tabBarBackground: "rgb(2 179 189)",
    }}
  />
  <Tab.Screen
    name="Home"
    component={TestScreen}
    options={{
      tabBarIcon: <FontAwesome name="home" size={20}></FontAwesome>,
      tabBarBackground: "rgb(58 107 229)",
    }}
  />
  <Tab.Screen
    name="Profile"
    component={TestScreen}
    options={{
      tabBarIcon: <Icon name="user" size={20}></Icon>,
      tabBarBackground: "rgb(255 59 45)",
    }}
  />
</Tab.Navigator>

🔧 Props

PropTypeDescription
tabBarStyleStylePropStyling the whole Tab Bar
labelsStyleStylePropStyling all labels
iconsStyleStylePropStyling all icons
currentTabLabelStyleStylePropStyling only the current tab label
currentTabIconStyleStylePropStyling only the current tab icon
currentTabDashStyleStylePropStyling dash component above the current tab

📄 Credits

Big thanks to @AetherAurelia for the design : https://twitter.com/AetherAurelia/status/1638858062596374528?s=20

Keywords

react-native

FAQs

Package last updated on 04 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts