Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/terrysahaidak/react-native-easy-tabs

Easy and simple tabs for your react-native project.
https://github.com/terrysahaidak/react-native-easy-tabs

Last synced: 2 months ago
JSON representation

Easy and simple tabs for your react-native project.

Awesome Lists containing this project

README

        

# react-native-easy-tabs

> Blazing fast and easy tabs
______________________________

:raising_hand: If you are looking for a rich tab view with gestures and build-in headers (tab-switchers), take a look at [react-native-tab-view](https://github.com/react-native-community/react-native-tab-view).

## Examples



## Installation

Use npm or yarn to install it. There is no need for linking, since it's just plain React Native Animated with `useNativeDriver`.

```bash
npm i --save react-native-easy-tabs
# or
yarn add react-native-easy-tabs
```

## Changelog

Here is our [changelog](CHANGELOG). We are using [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and [Semantic Versioning](https://semver.org/spec/v2.0.0.html) during development.

## Usage
`react-native-easy-tabs` exposes two components – `TabView` and `Tab`.
`TabView` is a container for your tabs. It manages tab position

Clone this repository and run example project.

Here is a quick overview:
```js
import React, { useState } from 'react';
import { Tab, TabView } from 'react-native-easy-tabs';

export default function MyScreen() {
const [currentTab, setCurrentTab] = useState(0);

return (


setCurrentTab(0)} />
setCurrentTab(1)} />
setCurrentTab(2)} />




This is tab 1




Second tab here, yo





THIRD TAB YAAAY




);
}
```

## License

[MIT](LICENSE) © Terry Sahaidak 2019