Skip to content

Commit be4a78c

Browse files
committed
restart the app with react-native-restart
1 parent 4efa5c8 commit be4a78c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/lib/refresh.js

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

66
export async function refreshApp() {
77
await clearAsyncStorage()
88
await clearLoginCredentials()
9-
codePush.restartApp()
9+
restart.Restart()
1010
}

0 commit comments

Comments
 (0)