brick-hooks-native
TypeScript icon, indicating that this package has built-in type declarations

0.4.5 • Public • Published

brick-hooks-native

可用于 React-native 的 React Hooks Library

在线文档

用法

import { useAppstate } from 'brick-hooks-native';

useAnimateValue 方便使用 react-native Animated,保留原始用法

useAnimate 方便使用 react-native Animated

useAppstate 方便监听 app 前后台切换

useAsyncStorage 方便使用 react-native 的 storage

useFocusApp 监听 app focus(从后台切换到前台)

useInView 监听滚动进入可视区域

useLazySequenceLoad 分组懒加载,用于首页等信息流

useScrollToTop 方便滚动到顶部

useTransition 方便使用动画过渡效果

Readme

Keywords

none

Package Sidebar

Install

npm i brick-hooks-native

Weekly Downloads

0

Version

0.4.5

License

ISC

Unpacked Size

140 kB

Total Files

70

Last publish

Collaborators

  • mingrenjbdt