1.0.0-a • Published 4 years ago

@godswillokokon/react-native-tabbar-interaction v1.0.0-a

Weekly downloads
14
License
MIT
Repository
github
Last release
4 years ago

React Native Tabbar Interaction

This is a clone from https://www.npmjs.com/package/@mindinventory/react-native-tab-bar-interaction and

I will be making my fixes and updates directly to this package

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)

Installation

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

Android: react-native run-android

iPhone: react-native run-ios

Usage

import TabBar from "@godswillokokon/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

propvaluerequired/optionaldescription
iconimage sourcerequiredthe icon when item is not focus
selectedIconimage sourcerequiredthe icon when item is focus
titlestringrequiredtitle of item
screenBackgroundColorstringrequiredbackground color of screen
bgNavBarstringoptionbackground color of nav
bgNavBarSelectorstringoptionbackground color of nav selected
strokestringoptionborder color of nav

Dependencies

  • react-native-svg

Changelog

Version: 1.0

  • Initial Build

Big shout out to Mindinventory for coming up with this project !!!

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 godswillokokon3@gmail.com And do let us know if you have any questions or suggestion regarding our work.