DEL: Remove "removelisteners" call as it causes crashes when debugging

This commit is contained in:
Marcos Rodriguez Velez 2023-11-05 15:53:22 -04:00
parent 7b6ea530dd
commit 5aa22f9175
No known key found for this signature in database
GPG Key ID: 6030B2F48CCE86D7

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);