@exodus/react-native-hooks

2.0.2 • Public • Published

@exodus/react-native-hooks

React hooks which uses specific react-native API

Usage

useClipboard

import useClipboard from '@exodus/react-native-hooks/useClipboard'

use Clipboard from react-native api

usage

const { handleCopyPress, copied } = useClipboard({ onCopyPress, copyValue })

useWindowSize

import useWindowSize from '@exodus/react-native-hooks/useWindowSize'

return window dimensions using optional uiScale

const { width, height } = useWindowSize(1)

Readme

Keywords

none

Package Sidebar

Install

npm i @exodus/react-native-hooks

Weekly Downloads

1,402

Version

2.0.2

License

MIT

Unpacked Size

6.01 kB

Total Files

8

Last publish

Collaborators

  • joshuabot