diff --git a/TimerPage.tsx b/TimerPage.tsx
index dd6479e..1061436 100644
--- a/TimerPage.tsx
+++ b/TimerPage.tsx
@@ -1,13 +1,10 @@
import { useFocusEffect } from "@react-navigation/native";
-import React, { useCallback, useMemo, useState } from "react";
+import React, { useCallback, useState } from "react";
import { NativeModules, View } from "react-native";
import { FAB, Text, useTheme } from "react-native-paper";
-import { ProgressCircle } from "react-native-svg-charts";
import AppFab from "./AppFab";
-import { darkenRgba } from "./colors";
-import { MARGIN, PADDING } from "./constants";
-import { settingsRepo } from "./db";
import DrawerHeader from "./DrawerHeader";
+import { settingsRepo } from "./db";
import Settings from "./settings";
import useTimer from "./use-timer";
@@ -38,37 +35,20 @@ export default function TimerPage() {
update();
};
- const progress = useMemo(() => {
- return (Number(minutes) * 60 + Number(seconds)) / 210;
- }, [minutes, seconds]);
-
- const backgroundColor = useMemo(() => {
- if (colors.primary.match(/rgba/)) return darkenRgba(colors.primary, 0.6);
- return colors.primary + "80";
- }, [colors.primary]);
-
return (
<>
-
-
-
- {minutes}:{seconds}
-
-
-
+
+
+ {minutes}:{seconds}
+
=0.50.0"
- }
- },
"node_modules/@types/react-native-vector-icons": {
"version": "6.4.13",
"license": "MIT",
@@ -5225,71 +5160,6 @@
"version": "3.1.2",
"license": "MIT"
},
- "node_modules/d3-array": {
- "version": "1.2.4",
- "license": "BSD-3-Clause"
- },
- "node_modules/d3-collection": {
- "version": "1.0.7",
- "license": "BSD-3-Clause"
- },
- "node_modules/d3-color": {
- "version": "1.4.1",
- "license": "BSD-3-Clause"
- },
- "node_modules/d3-format": {
- "version": "1.4.5",
- "license": "BSD-3-Clause"
- },
- "node_modules/d3-interpolate": {
- "version": "1.4.0",
- "license": "BSD-3-Clause",
- "dependencies": {
- "d3-color": "1"
- }
- },
- "node_modules/d3-interpolate-path": {
- "version": "2.0.0",
- "license": "BSD-3-Clause",
- "dependencies": {
- "d3-interpolate": "^1.1.1"
- }
- },
- "node_modules/d3-path": {
- "version": "1.0.9",
- "license": "BSD-3-Clause"
- },
- "node_modules/d3-scale": {
- "version": "1.0.7",
- "license": "BSD-3-Clause",
- "dependencies": {
- "d3-array": "^1.2.0",
- "d3-collection": "1",
- "d3-color": "1",
- "d3-format": "1",
- "d3-interpolate": "1",
- "d3-time": "1",
- "d3-time-format": "2"
- }
- },
- "node_modules/d3-shape": {
- "version": "1.3.7",
- "license": "BSD-3-Clause",
- "dependencies": {
- "d3-path": "1"
- }
- },
- "node_modules/d3-time": {
- "version": "1.1.0",
- "license": "BSD-3-Clause"
- },
- "node_modules/d3-time-format": {
- "version": "2.3.0",
- "license": "BSD-3-Clause",
- "dependencies": {
- "d3-time": "1"
- }
- },
"node_modules/date-fns": {
"version": "2.30.0",
"license": "MIT",
@@ -9460,16 +9330,6 @@
"node": ">=0.11.0"
}
},
- "node_modules/pegjs": {
- "version": "0.10.0",
- "license": "MIT",
- "bin": {
- "pegjs": "bin/pegjs"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
"node_modules/picocolors": {
"version": "1.0.0",
"license": "ISC"
@@ -9969,22 +9829,6 @@
"react-native": "*"
}
},
- "node_modules/react-native-svg-charts": {
- "version": "5.4.0",
- "license": "MIT",
- "dependencies": {
- "d3-array": "^1.2.0",
- "d3-interpolate-path": "2.0.0",
- "d3-scale": "^1.0.6",
- "d3-shape": "^1.0.6",
- "prop-types": "^15.6.0"
- },
- "peerDependencies": {
- "react": ">=16.0.0-alpha.12",
- "react-native": ">=0.46.0",
- "react-native-svg": "^6.2.1||^7.0.3"
- }
- },
"node_modules/react-native-vector-icons": {
"version": "9.2.0",
"license": "MIT",
diff --git a/package.json b/package.json
index d448593..cfa6ce6 100644
--- a/package.json
+++ b/package.json
@@ -24,7 +24,6 @@
"@testing-library/react-native": "^12.1.2",
"@types/d3-shape": "^3.1.1",
"@types/react-native-sqlite-storage": "^6.0.0",
- "@types/react-native-svg-charts": "^5.0.12",
"@types/react-native-vector-icons": "^6.4.13",
"babel-plugin-transform-remove-console": "^6.9.4",
"babel-preset-react-native": "^4.0.1",
@@ -47,7 +46,6 @@
"react-native-share": "^9.2.3",
"react-native-sqlite-storage": "^6.0.1",
"react-native-svg": "^13.10.10",
- "react-native-svg-charts": "^5.4.0",
"react-native-vector-icons": "^9.2.0",
"react-native-view-shot": "^3.7.0",
"typeorm": "^0.3.17"