A React hook which determines whether a sync is in progress and triggers a re-render should that change.
import { useSyncInProgress } from "react-native-app-helpers";
const ExampleScreen = () => {
// True or false.
const syncInProgress = useSyncInProgress(sync);
return null;
};