@matejpekar/react-native-scrollable-tabs
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

react-native-scrollable-tabs

This is a package for implementing scrollable tabs such as AirBnb filter tabs

Installation

yarn add @matejpekar/react-native-scrollable-tabs

or

npm install @matejpekar/react-native-scrollable-tabs

Usage

import ScrollableTabs, {
  ScrollIndicator,
} from '@matejpekar/react-native-scrollable-tabs';

// ...

export default () => {
  const { width } = useWindowDimensions();

  return (
    <ScrollableTabs width={width} scrollIndicator={ScrollIndicator}>
      <Tab />
      // ...
    </ScrollableTabs>
  );
};

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Package Sidebar

Install

npm i @matejpekar/react-native-scrollable-tabs

Weekly Downloads

2

Version

0.2.0

License

MIT

Unpacked Size

101 kB

Total Files

121

Last publish

Collaborators

  • matejpekar