Merge pull request #5808 from BlueWallet/listeners

DEL: Remove "removelisteners" call as it causes crashes when debugging
This commit is contained in:
GLaDOS 2023-11-05 21:44:19 +00:00 committed by GitHub
commit 8a10dfaabf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

11
App.js
View file

@ -117,17 +117,6 @@ const App = () => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [walletsInitialized]);
useEffect(() => {
return () => {
Linking.removeEventListener('url', handleOpenURL);
AppState.removeEventListener('change', handleAppStateChange);
eventEmitter?.removeAllListeners('onNotificationReceived');
eventEmitter?.removeAllListeners('openSettings');
eventEmitter?.removeAllListeners('onUserActivityOpen');
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const addListeners = () => {
Linking.addEventListener('url', handleOpenURL);
AppState.addEventListener('change', handleAppStateChange);