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

https://github.com/bogoslavskiy/react-native-tabs-section-list

React Native SectionList with scrollable tabs
https://github.com/bogoslavskiy/react-native-tabs-section-list

react-native sectionlist tabs

Last synced: 4 months ago
JSON representation

React Native SectionList with scrollable tabs

Awesome Lists containing this project

README

          

# react-native-tabs-section-list
[![npm version](https://badge.fury.io/js/react-native-tabs-section-list.svg)](https://badge.fury.io/js/react-native-tabs-section-list)

React Native SectionList with scrollable tabs

## Installation

```bash
$ yarn add react-native-tabs-section-list
```

## Usage
[See example](https://github.com/bogoslavskiy/react-native-tabs-section-list/blob/master/example/App.tsx)

## Run example
```bash
$ git clone https://github.com/bogoslavskiy/react-native-tabs-section-list.git
$ cd react-native-tabs-section-list/example
$ yarn install
$ yarn start
```

## Props

Name | Description | Type | Default
------ | ------ | ------ | ------
`scrollToLocationOffset?` | Param is inserted into `scrollToLocation` as `viewOffset` [See React Native Docs](https://facebook.github.io/react-native/docs/sectionlist#scrolltolocation) | `number` | 0
`tabBarStyle?` | Styles for tabBar | `ViewStyle` | undefined
`renderTab` | Callback which returns a custom React Element to use as the tab bar `(section: SectionListData) ` | `React.ReactNode` | Required
`SectionList` [props...](https://facebook.github.io/react-native/docs/sectionlist#props) | | |