Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lvlrSajjad/react-native-animated-bottom-tabbar

Animated bottom Tab bar for react native
https://github.com/lvlrSajjad/react-native-animated-bottom-tabbar

bottom-tabbar react-native react-native-animated react-native-animated-bottom-tabbar react-native-bottom react-native-bottom-bar react-native-bottom-tabbar react-native-component tab-bar tabbar

Last synced: 3 months ago
JSON representation

Animated bottom Tab bar for react native

Awesome Lists containing this project

README

        

# react-native-animated-bottom-tabbar [![npm version](https://img.shields.io/npm/v/react-native-animated-bottom-tabbar.svg)](https://www.npmjs.com/package/react-native-animated-bottom-tabbar)

typeOne:

typeTwo:

## Getting started

`$ npm install react-native-animated-bottom-tabbar --save`

`$ npm install react-native-svg --save`

`$ react-native link react-native-svg`

## Usage
```javascript
import React, {Component} from 'react';
import {Platform, StyleSheet, Text, View, Image} from 'react-native';
import {TypeOne,TypeTwo} from "react-native-animated-bottom-tabbar"; //<-----------------import

const instructions = Platform.select({
ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu',
android:
'Double tap R on your keyboard to reload,\n' +
'Shake or press menu button for dev menu',
});

//array of icon views this array can be image or vector icon for tab bar
// array size can be 1 to maximum 5 !
const icons = [
,
,
,
,

];
type Props = {};
export default class App extends Component {

render() {
return (

Welcome to React Native!
To get started, edit App.js
{instructions}
{/* here*/}
console.log(index)} //on select an item , index starts at 1 :-D
/>

);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
},
});

```