Gravitywell React-Native Hooks
Library of commonly used React-Native hooks
Usage
import { <LIB_NAME_HERE> } from "@gravitywelluk/react-native-hooks";
Table of Contents
useAssetLoader
A hook that loads each asset into cache.
import { useAssetLoader } from "@gravitywelluk/react-native-hooks";
const [ assetsLoaded ] = useAssetLoader([
require("./path/to/file/example.png"),
require("./path/to/file/example.jpg")
]);
/* Output:
[ true, null ]
*/