0.2.0 • Published 10 months ago

@matejpekar/react-native-scrollable-tabs v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

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

0.2.0

10 months ago