@exodus/react-native-hooks
v2.0.2
Published
The react-native-hooks library
Downloads
3,789
Readme
@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)