Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

show login button on toast

ammarahm-edf17452d08a51
diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.js
index e8b9fd513..943ea4f60 100644
--- a/apps/mobile/src/components/SimpleList/index.js
+++ b/apps/mobile/src/components/SimpleList/index.js
@@ -118,7 +118,18 @@ const SimpleList = ({
} else {
setRefreshing(false);
}
- ToastEvent.show(e.message, 'error');
+ ToastEvent.show(
+ e.message,
+ 'error',
+ 'global',
+ 5000,
+ () => {
+ NavigationService.navigate('Login', {
+ root: true,
+ });
+ },
+ 'Login',
+ );
}
dispatch({type: ACTIONS.ALL});
};