All Projects β†’ timomeh β†’ React Native Material Bottom Navigation

timomeh / React Native Material Bottom Navigation

Licence: mit
πŸ’…πŸ”§πŸ‘Œ a beautiful, customizable and easy-to-use material design bottom navigation for react-native

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Material Bottom Navigation

React Native Material Menu
Pure JavaScript material menu component for React Native
Stars: ✭ 327 (-50.38%)
Mutual labels:  material-design, react-native-component
Vue Crud
Vue.js based REST-ful CRUD system
Stars: ✭ 629 (-4.55%)
Mutual labels:  material-design
Material Awesome
Material and Mouse driven config for AwesomeWM 4.3
Stars: ✭ 588 (-10.77%)
Mutual labels:  material-design
Materialdialog Android
πŸ“±Android Library to implement animated, 😍beautiful, 🎨stylish Material Dialog in android apps easily.
Stars: ✭ 602 (-8.65%)
Mutual labels:  material-design
React Native Onboarding Swiper
πŸ›³ Delightful onboarding for your React-Native app
Stars: ✭ 596 (-9.56%)
Mutual labels:  react-native-component
React Native Snackbar
🍱 Material Design "Snackbar" component for Android and iOS.
Stars: ✭ 613 (-6.98%)
Mutual labels:  material-design
Android Material Design For Pre Lollipop
Various UI implementations, animations & effects based on Material Design compatible with pre Lollipop devices as well. (Work in progess)
Stars: ✭ 585 (-11.23%)
Mutual labels:  material-design
Music Player Go
🎢🎼 Very slim music player πŸ‘¨β€πŸŽ€ 100% made in Italy πŸ•πŸŒ³πŸŒžπŸπŸŒ„
Stars: ✭ 654 (-0.76%)
Mutual labels:  material-design
Jfoenix
JavaFX Material Design Library
Stars: ✭ 5,720 (+767.98%)
Mutual labels:  material-design
Fluid
πŸ“– Library for QtQuick apps with Material Design
Stars: ✭ 601 (-8.8%)
Mutual labels:  material-design
Springboot Starterkit
Starter Kit for Spring Boot based (REST APIs and WebMVC) micro services.
Stars: ✭ 596 (-9.56%)
Mutual labels:  material-design
Holdingbutton
Button which is visible while user holds it. Main use case is controlling audio recording state (like in Telegram, Viber, VK).
Stars: ✭ 595 (-9.71%)
Mutual labels:  material-design
Bottomdialogs
An Android library that shows a customizable Material-based bottom sheet. API 11+ required.
Stars: ✭ 624 (-5.31%)
Mutual labels:  material-design
Flutter login
100% Shared Code Android/iOS Login Example - JSON API
Stars: ✭ 589 (-10.62%)
Mutual labels:  material-design
Material Components Flutter
Modular and customizable Material Design UI components for Flutter
Stars: ✭ 651 (-1.21%)
Mutual labels:  material-design
Materialfavoritebutton
Animated favorite/star/like button
Stars: ✭ 586 (-11.08%)
Mutual labels:  material-design
Ng Matero
Angular Material admin dashboard template.
Stars: ✭ 597 (-9.41%)
Mutual labels:  material-design
Material Drawer
Custom drawer implementation for Material design apps.
Stars: ✭ 611 (-7.28%)
Mutual labels:  material-design
React Native Qrcode Scanner View
A highly customizable QR code scanning component for React Native
Stars: ✭ 658 (-0.15%)
Mutual labels:  react-native-component
React Notification
Provides snackbar notifications for React
Stars: ✭ 652 (-1.06%)
Mutual labels:  material-design

react-native-material-bottom-navigation


npm version downloads

A beautiful, customizable and easy-to-use
Material Design Bottom Navigation for react-native.


  • Pure JavaScript. No native dependencies. No linking. No obstacles.
  • Looks beautiful. Stunning and fluid animations. You won't believe it's not a native view.
  • Customize it. You can adjust nearly everything to make it fit perfectly to your app.
  • Easy to use. Uses established React patterns for both simple and advanced usage.
  • Pluggable. Includes customizable Tabs and Badges. Not enough? Create and use your own!

Installation

npm install react-native-material-bottom-navigation

Table of Contents

Demo


Shifting Tab


Full Tab


Icon Tab

Usage

This library uses "render props" as established pattern for component composition. The example below illustrates the basic usage of the Bottom Navigation. All available Props are listed in the Documentation.

Dive into the example below, check out the example app and take a look at the Usage Documentation.

import BottomNavigation, {
  FullTab
} from 'react-native-material-bottom-navigation'

export default class App extends React.Component {
  tabs = [
    {
      key: 'games',
      icon: 'gamepad-variant',
      label: 'Games',
      barColor: '#388E3C',
      pressColor: 'rgba(255, 255, 255, 0.16)'
    },
    {
      key: 'movies-tv',
      icon: 'movie',
      label: 'Movies & TV',
      barColor: '#B71C1C',
      pressColor: 'rgba(255, 255, 255, 0.16)'
    },
    {
      key: 'music',
      icon: 'music-note',
      label: 'Music',
      barColor: '#E64A19',
      pressColor: 'rgba(255, 255, 255, 0.16)'
    }
  ]

  state = {
    activeTab: 'games'
  }

  renderIcon = icon => ({ isActive }) => (
    <Icon size={24} color="white" name={icon} />
  )

  renderTab = ({ tab, isActive }) => (
    <FullTab
      isActive={isActive}
      key={tab.key}
      label={tab.label}
      renderIcon={this.renderIcon(tab.icon)}
    />
  )

  render() {
    return (
      <View style={{ flex: 1 }}>
        <View style={{ flex: 1 }}>
          {/* Your screen contents depending on current tab. */}
        </View>
        <BottomNavigation
          activeTab={this.state.activeTab}
          onTabPress={newTab => this.setState({ activeTab: newTab.key })}
          renderTab={this.renderTab}
          tabs={this.tabs}
        />
      </View>
    )
  }
}

Note: Out-of-the-box support for React Navigation (called NavigationComponent in earlier releases) was removed with v1. Check this example for a custom React Navigation integration. Read more...

Documentation

Notes

React Navigation Support

Check this example for a custom React Navigation integration.

In contrary to earlier releases, this library does not support React Navigation out of the box. React Navigation now ships with its own Material Bottom Navigation: createMaterialBottomTabNavigator.

You can still implement react-native-material-bottom-navigation manually by using React Navigation's Custom Navigators. Check out this example.

Updated Material Design Specs

Google updated the Material Guidelines on Google I/O 2018 with new specifications, including a slightly changed Bottom Navigation and a new "App Bar Bottom" with a FAB in a centered cutout. react-native-material-bottom-navigation uses the older specs.

Contribute

Contributions are always welcome. Read more in the Contribution Guides.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Contributors

Thanks goes to these wonderful people (emoji key):

Timo MΓ€mecke
Timo MΓ€mecke

πŸ› πŸ’» 🎨 πŸ“– πŸ’‘ πŸš‡ πŸ€” πŸ‘€
Shayan Javadi
Shayan Javadi

πŸ’»
David
David

πŸ’»
Jayser Mendez
Jayser Mendez

πŸ“–
Peter Kottas
Peter Kottas

πŸ’»
Matt Oakes
Matt Oakes

πŸ’»
Keeley Carrigan
Keeley Carrigan

πŸ’»
Sean Holbert
Sean Holbert

πŸ’»
Alessandro Parolin
Alessandro Parolin

πŸ“–
Prashanth Acharya M
Prashanth Acharya M

πŸ“–
Alexey Tcherevatov
Alexey Tcherevatov

πŸ’» πŸ›
Trevor Atlas
Trevor Atlas

πŸ›

This project follows the all-contributors specification. Contributions of any kind welcome!

License

MIT, Β© 2017 - present Timo MΓ€mecke

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].