项目作者: LucasBN

项目描述 :
Customisable Tab Bar View For React Native
高级语言: JavaScript
项目地址: git://github.com/LucasBN/react-native-tab-barview-animation.git


React Native Tab Bar View Animated


Get Started

Installation

  1. npm i react-native-tab-barview-animation

Usage

  1. import { TabBar } from 'react-native-tab-barview-animation';
  2. <TabBar
  3. views={[<ScreenOne></TabBar>, <ScreenTwo></ScreenTwo>, <ScreenThree></ScreenThree>]}
  4. style={{backgroundColor: 'white', borderTopWidth: 0}}
  5. iconConfig={{
  6. icons: ['ios-home', 'ios-person', 'ios-home'],
  7. labels: ['Home', 'Profile', 'Test'],
  8. labelVisible: false,
  9. activeColor: '#4d97ff',
  10. inactiveColor: '#595959'
  11. }}
  12. transitionConfig={{
  13. transition: 'slide'
  14. }}
  15. />

Props

Property Type isRequired? Default Description
views component required - components to render
style - optional - tab bar style
iconConfig[icons] string array required - icons in tab
iconConfig[labels] string array optional - labels in tab
iconConfig[labelVisible] bool required - toggle labels on/off
iconConfig[activeColor] string required - icon active color
iconConfig[inactiveColor] string required - icon inactive color
transitionConfig[transition] string required - transition used

Transitions

Snap


Fade


Slide