Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 411 Bytes

File metadata and controls

17 lines (12 loc) · 411 Bytes

react-native-app-helpers/useSyncFileCleanUpBlocker

A React hook which blocks sync file clean-up; this should be added to screens which may import images to the file store before references to them are committed to the state store.

Usage

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

const ExampleScreen = () => {
  useSyncFileCleanUpBlocker(sync);

  return null;
};