Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 357 Bytes

File metadata and controls

17 lines (12 loc) · 357 Bytes

react-native-app-helpers/useSyncInProgress

A React hook which determines whether a sync is in progress and triggers a re-render should that change.

Usage

import { useSyncInProgress } from "react-native-app-helpers";

const ExampleScreen = () => {
  // True or false.
  const syncInProgress = useSyncInProgress(sync);

  return null;
};