@gravitywelluk/react-native-hooks
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Gravitywell React-Native Hooks

Library of commonly used React-Native hooks

CI License Downloads Version


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 ]

*/

Package Sidebar

Install

npm i @gravitywelluk/react-native-hooks

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.9 kB

Total Files

7

Last publish

Collaborators

  • gravitywell.uk