Cleanup
This commit is contained in:
@@ -2,7 +2,6 @@ import Realm from 'realm'
|
||||
import { LocalDate, ChronoUnit } from 'js-joda'
|
||||
import nodejs from 'nodejs-mobile-react-native'
|
||||
import fs from 'react-native-fs'
|
||||
import { restartApp } from './restart-app'
|
||||
|
||||
import schemas from './schemas'
|
||||
import cycleModule from '../lib/cycle'
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// Current version of react-native-restart doesn't work with our ios setup
|
||||
// therefore we have a fork and use different libraries on the platforms
|
||||
import restart from 'react-native-restart'
|
||||
|
||||
export const restartApp = restart.Restart
|
||||
@@ -1,11 +0,0 @@
|
||||
// Current version of react-native-restart doesn't work with our ios setup
|
||||
// therefore we have a fork and use different libraries on the platforms
|
||||
import RNExitApp from 'react-native-exit-app-v2'
|
||||
import { Alert } from 'react-native'
|
||||
|
||||
export const restartApp = () => {
|
||||
Alert.alert('Closing app', 'App is shutting down. Please restart.')
|
||||
setTimeout(() => {
|
||||
RNExitApp.exitApp()
|
||||
}, 3000)
|
||||
}
|
||||
Reference in New Issue
Block a user