Skip to content

Commit 5962fc1

Browse files
committed
restart the app with react-native-restart
1 parent bc74319 commit 5962fc1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

source/lib/refresh.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
// @flow
22
import {clearAsyncStorage} from './storage'
3+
import restart from 'react-native-restart'
34
import {clearLoginCredentials} from './login'
45

56
export async function refreshApp() {
67
await clearAsyncStorage()
78
await clearLoginCredentials()
9+
restart.Restart()
810
}

0 commit comments

Comments
 (0)