From e9bf86006ee1e16b2d22e53ee05f4945775e046a Mon Sep 17 00:00:00 2001 From: Sofiya Tepikin Date: Wed, 10 Aug 2022 15:59:27 +0200 Subject: [PATCH] Cleanup --- db/index.js | 1 - db/restart-app/index.android.js | 5 ----- db/restart-app/index.ios.js | 11 ----------- package-lock.json | 5 ----- package.json | 4 +--- 5 files changed, 1 insertion(+), 25 deletions(-) delete mode 100644 db/restart-app/index.android.js delete mode 100644 db/restart-app/index.ios.js diff --git a/db/index.js b/db/index.js index 06905de..2a0a3a1 100644 --- a/db/index.js +++ b/db/index.js @@ -2,7 +2,6 @@ import Realm from 'realm' import { LocalDate, ChronoUnit } from '@js-joda/core' 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' diff --git a/db/restart-app/index.android.js b/db/restart-app/index.android.js deleted file mode 100644 index 3a84dc2..0000000 --- a/db/restart-app/index.android.js +++ /dev/null @@ -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 diff --git a/db/restart-app/index.ios.js b/db/restart-app/index.ios.js deleted file mode 100644 index 0f3db9b..0000000 --- a/db/restart-app/index.ios.js +++ /dev/null @@ -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) -} diff --git a/package-lock.json b/package-lock.json index beb0085..1a3fe2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15384,11 +15384,6 @@ "resolved": "https://registry.npmjs.org/react-native-document-picker/-/react-native-document-picker-4.3.0.tgz", "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": { "version": "2.20.0", "resolved": "https://registry.npmjs.org/react-native-fs/-/react-native-fs-2.20.0.tgz", diff --git a/package.json b/package.json index 997e49c..0004f69 100644 --- a/package.json +++ b/package.json @@ -46,12 +46,10 @@ "react-native": "0.62.0", "react-native-calendars": "^1.1287.0", "react-native-document-picker": "^4.2.0", - "react-native-exit-app-v2": "^1.2.2", "react-native-fs": "^2.20.0", "react-native-hyperlink": "0.0.19", "react-native-modal-datetime-picker": "8.0.0", - "react-native-push-notification": "3.2.1", - "react-native-restart": "0.0.24", + "react-native-push-notification": "3.2.1", "react-native-share": "^3.0.0", "react-native-simple-toast": "^1.1.3", "react-native-size-matters": "^0.4.0",