useOnResumeForeground
- Description
- Params and Return
- Example
Hook that is called when app moves from the background to the foreground
Param / Return | Description |
---|---|
param | callback: function to execute when app is back in the foreground |
How to use the useOnResumeForeground component
useOnResumeForeground(() => {
dispatch(loadPushPreferences())
})