1.0.2 • Published 3 years ago

@gravitywelluk/react-native-hooks v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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 ]

*/