We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc74319 commit 5962fc1Copy full SHA for 5962fc1
source/lib/refresh.js
@@ -1,8 +1,10 @@
1
// @flow
2
import {clearAsyncStorage} from './storage'
3
+import restart from 'react-native-restart'
4
import {clearLoginCredentials} from './login'
5
6
export async function refreshApp() {
7
await clearAsyncStorage()
8
await clearLoginCredentials()
9
+ restart.Restart()
10
}
0 commit comments