@os-design-mobile/use-refresh-control
TypeScript icon, indicating that this package has built-in type declarations

1.0.51 • Public • Published

@os-design-mobile/use-refresh-control NPM version BundlePhobia

The React hook that returns the RefreshControl component to performs refetch in Relay.

Installation

Install the package using the following command:

yarn add @os-design-mobile/use-refresh-control

Example of usage

const { data, refetch } = usePaginationFragment(
  collectionsFragment,
  userCollectionsKey
);

const refreshControl = useRefreshControl(refetch, collectionListScreenQuery, {
  know,
});

return <FlatList refreshControl={refreshControl} />;

Readme

Keywords

none

Package Sidebar

Install

npm i @os-design-mobile/use-refresh-control

Weekly Downloads

47

Version

1.0.51

License

UNLICENSED

Unpacked Size

13 kB

Total Files

11

Last publish

Collaborators

  • oxilor