1.0.0 • Published 5 years ago
@and-cru/use-foreground v1.0.0
@and-cru/use-foreground
React Native hook to call handler function when app is in foreground
Table of Contents
Usage
import useForeground from '@and-cru/use-foreground'
export const Example = () => {
useForeground(() => {
console.log('refreshing state...')
})
return null
}Install
This project uses node and npm.
$ npm install @and-cru/use-foreground
$ # OR
$ yarn add @and-cru/use-foregroundContribute
- Fork it and create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am "Add some feature" - Push to the branch:
git push origin my-new-feature - Submit a pull request
License
MIT
1.0.0
5 years ago