Tabbar Component For React-Native

Overview

React Native Tabbar Interaction

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

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)

Read about how we made this on our blog (https://www.mindinventory.com/blog/create-tabbar-plugin-with-react-native/)

Installation

npm i mindinventory/react-native-tab-bar-interaction

Android: react-native run-android

iPhone: react-native run-ios

Usage

import TabBar from "@mindinventory/react-native-tab-bar-interaction";
...
  render() {
      return (
          <TabBar bgNavBar="white" bgNavBarSelector="white" stroke="skyblue">
            <TabBar.Item
                icon={require('./tab1.png')}
                selectedIcon={require('./tab1.png')}
                title="Tab1"
                screenBackgroundColor={{ backgroundColor: '#008080' }}
            >
              <View>
                  {/*Page Content*/}
              </View>
            </TabBar.Item>
            <TabBar.Item
                icon={require('./tab2.png')}
                selectedIcon={require('./tab1.png')}
                title="Tab2"
                screenBackgroundColor={{ backgroundColor: '#F08080' }}
            >
                <View>
                    {/*Page Content*/}
                </View>
            </TabBar.Item>
            <TabBar.Item
                icon={require('./tab3.png')}
                selectedIcon={require('./tab1.png')}
                title="Tab3"
                screenBackgroundColor={{ backgroundColor: '#485d72' }}
            >
              <View>
                  {/*Page Content*/}
              </View>
            </TabBar.Item>
          </TabBar>
      );
    }

Component props

prop value required/optional description
icon image source required the icon when item is not focus
selectedIcon image source required the icon when item is focus
title string required title of item
screenBackgroundColor string required background color of screen
bgNavBar string option background color of nav
bgNavBarSelector string option background color of nav selected
stroke string option border color of nav

Dependencies

  • react-native-svg

Changelog

Version: 1.0

  • Initial Build

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.

Comments
  • NavBar not transparent after import ScrollView or FlastList on Page Content

    NavBar not transparent after import ScrollView or FlastList on Page Content

    <View style={styles.container}>
                    <TabBar>
                        <TabBar.Item
                            icon={require('../../Images/certificate.png')}
                            selectedIcon={require('../../Images/certificate.png')}
                            title="Tab1"
                            screenBackgroundColor={{ backgroundColor: COLORS.COLOR_VIBLO }}
                        >
                            <View style={{flex: 1, backgroundColor: 'yellow'}}>
                                <ScrollView>
                                    <Text>12321</Text>
                                    ....
                                </ScrollView>
                            </View>
                        </TabBar.Item>
                        <TabBar.Item
                            icon={require('../../Images/profile.png')}
                            selectedIcon={require('../../Images/profile.png')}
                            title="Tab2"
                            screenBackgroundColor={{ backgroundColor: '#F08080' }}
                        >
                            <View>
                                {/*Page Content*/}
                            </View>
                        </TabBar.Item>
                        <TabBar.Item
                            icon={require('../../Images/trophy.png')}
                            selectedIcon={require('../../Images/trophy.png')}
                            title="Tab3"
                            screenBackgroundColor={{ backgroundColor: '#485d72' }}
                        >
                        <View>
                            {/*Page Content*/}
                        </View>
                        </TabBar.Item>
                    </TabBar>
                </View>
    
    opened by longnk-1447 7
  • Already added dependency but still error

    Already added dependency but still error

    I have added dependency using

    npm i mindinventory/react-native-tab-bar-interaction

    It throws error: bundling failed: Error: Unable to resolve module react-native-tab-bar-interaction Module react-native-tab-bar-interaction does not exist in the Haste module map

    opened by nancycssjockey 6
  • Change active tab

    Change active tab

    Hello! Thank you a lot for your job! I have one question: How i can change active tab by default? Now default active slide is first, but i want change it on therty

    enhancement 
    opened by RedirexStudio 4
  • Failed to compile, because of not resolving path

    Failed to compile, because of not resolving path

    If I want to compile it, I always get message:

    Creating an optimized production build... Failed to compile.

    Module not found: Error: Can't resolve './Tabbar/TabBar' in '/var/www/.../node_modules/@mindinventory/react-native-tab-bar-interaction'

    Is there something wrong with the paths?

    opened by trwxo 4
  • How can we change transition speed ?

    How can we change transition speed ?

    Hello Good job! Hoe can we change speed of transition? If this is not already added in the functionality then please add it.

    And also i have one more issue in the library like when application comes from background that time icon is not display.

    bug enhancement 
    opened by Satishpethani92 3
  • Types error when using with typescript/tsx

    Types error when using with typescript/tsx

    I am getting below errors when using this awesome package with typescript.

    1

    I have followed the installation instructions as specified on the package's github page

    Even though I do have skipLibCheck: true in tsconfig's compilerOptions and also have 'node_moduels in the excluded list of tsconfig, not sure why getting these errors, most of these are for the type discrepancies in node_modules/@mindinventory/react-native-tab-bar-interaction folder.

    2

    Please help

    opened by b-tiwari 2
  • Missing

    Missing " in documentation

          <TabBar bgNavBar="white" bgNavBarSelector="white" stroke=**"skyblue**>
          here a " is missing after skyblue
          
          don't know if this is the right place to submit such an issue. First timer here!
    
    opened by The-CodeNinja 2
  • how we can add more than 3 tab ,is there any alternate options for it?

    how we can add more than 3 tab ,is there any alternate options for it?

    I have 5 tab, i want to use this library for tab. but i'm not able add more than 3 tab. showing error like this " Three tab should be work."

    opened by vyasishanatc194 2
  • In Android selected icon is cutting.

    In Android selected icon is cutting.

    Hi,

    Thanks a lot for this wonderful library. In iOS its working fine but in Android I am facing issue. The selected icon in the circle is getting cut. Will you please guide me here.

    opened by reactnativedevelopers 2
  • Getting Module Parse Failure for this

    Getting Module Parse Failure for this

    Getting following error : ~node_modules/@mindinventory/react-native-tab-bar-interaction/TabBar.js 29:12

    Module parse failed: Unexpected token (29:12) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | return (

            <View style={{flex: 1}}>
    

    | {child} |

    opened by raoghuge 1
  • Update README DOUBLE QUOTATION Missing

    Update README DOUBLE QUOTATION Missing

    after about 1h searching the problem of usage i found that the line 32 <TabBar bgNavBar="white" bgNavBarSelector="white" stroke="skyblue> MISSING a close double quote to the stroke="skyblue">

    opened by troussema 1
Owner
MindInventory
MindInventory works with Enterprises, Startups, and Agencies since 2011 providing web, mobile app development, enterprise mobility solutions & DevOps services.
MindInventory
A component for flip animation on Android, which is similar to the effect in Flipboard iPhone/Android

android-flip Aphid FlipView is a UI component to accomplish the flipping animation like Flipboard does. A pre-built demo APK file for Android OS 2.2+

Bo 2.8k Dec 21, 2022
Animated tabbar with native control

SSCustomBottomNavigation Getting Started SSCustomBottomNavigation is a customizable bottom bar library with curved animations. The actual features are

Simform Solutions 363 Dec 30, 2022
📲💬 react-native-fontext is a lightweight library to integrate fonts in your React Native application that works seamlessly in android and iOS devices.

React Native Fontext react-native-fontext is a lightweight library to integrate fonts in your React Native application that works seamlessly in androi

mroads 9 Dec 3, 2021
React-native-user-interface - Change React Native userinterface at runtime

react-native-user-interface change RN userinterface at runtime. Installation npm

Ahmed Eid 0 Jan 11, 2022
TileOverlay component for react-native-maps

TileOverlay component for react-native-maps

Joe Julik 1 Apr 10, 2022
Native solution for common React Native problem of focused views being covered by soft input view.

react-native-avoid-softinput Native solution for common React Native problem of focused views being covered by soft input view. It is solved by listen

Mateusz Mędrek 312 Jan 2, 2023
Matomo wrapper for React-Native. Supports Android and iOS. Fixed issues for native platforms build that are present in the official package.

@mccsoft/react-native-matomo Matomo wrapper for React-Native. Supports Android and iOS. Fixed issues for native platforms build that are present in th

MCC Soft 4 Dec 29, 2022
Kotlin wrapper for React Test Renderer, which can be used to unit test React components in a Kotlin/JS project.

Kotlin API for React Test Renderer Kotlin wrapper for React Test Renderer, which can be used to unit test React components in a Kotlin/JS project. How

Xavier Cho 7 Jun 8, 2022
Render After Effects animations natively on Android and iOS, Web, and React Native

Lottie for Android, iOS, React Native, Web, and Windows Lottie is a mobile library for Android and iOS that parses Adobe After Effects animations expo

Airbnb 33.5k Jan 4, 2023
A React Native library making file access easier for developers as first class citizens, without the tears

React Native File Gateway A React Native library making file access easier for developers as first class citizens, without the tears. ⚠️ NOTE: This li

Jimmy Wei 4 Sep 11, 2021
Initiate immediate phone call for React Native on iOS and Android.

react-native-immediate-call-library Initiate immediate phone call for React Native on iOS and Android. Getting started Using npm: npm install react-na

null 7 Sep 7, 2022
Simple library to decompress files .zip, .rar, .cbz, .cbr in React Native.

Uncompress React Native Simple library to decompress files .zip, .rar, .cbz and .cbr in React Native. Installation yarn add uncompress-react-native o

Adriano Souza Costa 40 Nov 24, 2022
A react native interface for integrating payments using PayPal

react-native-paypal Getting started Installation npm install react-native-paypal Android Specific Add this to your build.gradle maven { url "https:

eKreative 14 Sep 25, 2022
A 2020s compatible React Native keyboard avoiding view for Android and iOS that just works.

react-native-keyboard-shift Example Snack coming soon Until then: Clone this repo: git clone https://github.com/FullStackCraft/react-native-keyboard-s

Full Stack Craft 66 Aug 16, 2022
Make SIP calls from react-native using Linphone SDK

react-native-sip Make SIP calls from react-native using Linphone SDK Installation npm install react-native-sip Usage import { multiply } from "react-n

Woonivers 2 Jun 30, 2022
Extension for Voisek App on React Native

react-native-voisek-app-extension Voisek App Extension for React Native Installation npm install react-native-voisek-app-extension Usage import Voisek

Omar Ramos Espinosa 2 Dec 21, 2021
Android PopupMenu and iOS14+ UIMenu components for react-native.

Android PopupMenu and iOS14+ UIMenu components for react-native. Falls back to ActionSheet for versions below iOS14.

null 568 Jan 1, 2023
React Native lets you customize the navigation bar for Android.

react-native-system-navigation-bar React Native lets you customize the navigation bar for Android. Hide Lean Back Immersive Sticky Immersive Low Profi

Kadir Aydınlı 120 Jan 3, 2023
React Native wrapper to bridge our iOS and Android SDK

React Native wrapper to bridge our iOS and Android SDK

Intercom 94 Jan 1, 2023
A demo for Android font typeface support in React Native!

A Step-by-step Guide to a Consistent Multi-Platform Font Typeface Experience in React Native Goal Be able to use font typeface modifiers such as fontW

Jules Sam. Randolph 53 Dec 23, 2022