react-native-appstate-hook icon indicating copy to clipboard operation
react-native-appstate-hook copied to clipboard

React Native appSate hook

Results 9 react-native-appstate-hook issues
Sort by recently updated
recently updated
newest added

Having the same name used twice in useEffect leaded to not calling onBackground, because appState there was referring to event listener, not react state. Steps to reproduce: - log to...

![image](https://user-images.githubusercontent.com/2896774/164119992-073a5bd4-b8fe-4c36-b909-995816083ca3.png)

node_modules/react-native-appstate-hook/dist/index.js `import { useState, useEffect } from 'react'; import { AppState } from 'react-native'; export default function useAppState(settings) { const { onChange, onForeground, onBackground } = settings || {}; const...

_Note: I could make a PR for this if this package is still being maintained and is open to PRs, but seeing as the directory structure only includes a `dist`...

![Screenshot_2021-11-02-18-04-56-390_com bank_hijra dev](https://user-images.githubusercontent.com/46390089/139835774-f6b7cf78-f989-4a66-ba30-c23810c741aa.jpg) hi @amrlabib i just found this bug in my project, please review my contribution. thanks!

npm ERR! Found: [email protected] npm ERR! node_modules/react-native npm ERR! react-native@"0.62.2" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react-native@"^0.59.0" from [email protected] npm ERR!...

Regarding 2.5.1, we found that your app uses or references the com.apple.springboard.lockcomplete API. To resolve this issue, it would be appropriate to revise your binary and remove any references to...

While `onChange` and `onForeground` seem to work perfectly, `onBackground` does not seem to fire - at least for iOS 15.2 running on an iPhone 13 simulator.