Cleanup
This commit is contained in:
@@ -2,7 +2,6 @@ import Realm from 'realm'
|
|||||||
import { LocalDate, ChronoUnit } from '@js-joda/core'
|
import { LocalDate, ChronoUnit } from '@js-joda/core'
|
||||||
import nodejs from 'nodejs-mobile-react-native'
|
import nodejs from 'nodejs-mobile-react-native'
|
||||||
import fs from 'react-native-fs'
|
import fs from 'react-native-fs'
|
||||||
import { restartApp } from './restart-app'
|
|
||||||
|
|
||||||
import schemas from './schemas'
|
import schemas from './schemas'
|
||||||
import cycleModule from '../lib/cycle'
|
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)
|
|
||||||
}
|
|
||||||
Generated
-5
@@ -15384,11 +15384,6 @@
|
|||||||
"resolved": "https://registry.npmjs.org/react-native-document-picker/-/react-native-document-picker-4.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-document-picker/-/react-native-document-picker-4.3.0.tgz",
|
||||||
"integrity": "sha512-ygcY0ijlVuhxzdWnhqd917yMUFT9FF0b4CM81LWoY4/bpQYz5PGUdRAdh25kS0VA+cEUYNL2iI7OpHXq00epPA=="
|
"integrity": "sha512-ygcY0ijlVuhxzdWnhqd917yMUFT9FF0b4CM81LWoY4/bpQYz5PGUdRAdh25kS0VA+cEUYNL2iI7OpHXq00epPA=="
|
||||||
},
|
},
|
||||||
"react-native-exit-app-v2": {
|
|
||||||
"version": "1.2.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/react-native-exit-app-v2/-/react-native-exit-app-v2-1.2.2.tgz",
|
|
||||||
"integrity": "sha512-RWCfmus7h99M1aONqBnWG3g3TFRzKsmok6cLAuqN5NVQAxpcgzbJZgAryA/ADpmBrBP5EIJnCBFo64ApQGOZPw=="
|
|
||||||
},
|
|
||||||
"react-native-fs": {
|
"react-native-fs": {
|
||||||
"version": "2.20.0",
|
"version": "2.20.0",
|
||||||
"resolved": "https://registry.npmjs.org/react-native-fs/-/react-native-fs-2.20.0.tgz",
|
"resolved": "https://registry.npmjs.org/react-native-fs/-/react-native-fs-2.20.0.tgz",
|
||||||
|
|||||||
+1
-3
@@ -46,12 +46,10 @@
|
|||||||
"react-native": "0.62.0",
|
"react-native": "0.62.0",
|
||||||
"react-native-calendars": "^1.1287.0",
|
"react-native-calendars": "^1.1287.0",
|
||||||
"react-native-document-picker": "^4.2.0",
|
"react-native-document-picker": "^4.2.0",
|
||||||
"react-native-exit-app-v2": "^1.2.2",
|
|
||||||
"react-native-fs": "^2.20.0",
|
"react-native-fs": "^2.20.0",
|
||||||
"react-native-hyperlink": "0.0.19",
|
"react-native-hyperlink": "0.0.19",
|
||||||
"react-native-modal-datetime-picker": "8.0.0",
|
"react-native-modal-datetime-picker": "8.0.0",
|
||||||
"react-native-push-notification": "3.2.1",
|
"react-native-push-notification": "3.2.1",
|
||||||
"react-native-restart": "0.0.24",
|
|
||||||
"react-native-share": "^3.0.0",
|
"react-native-share": "^3.0.0",
|
||||||
"react-native-simple-toast": "^1.1.3",
|
"react-native-simple-toast": "^1.1.3",
|
||||||
"react-native-size-matters": "^0.4.0",
|
"react-native-size-matters": "^0.4.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user