diff --git a/babel.config.js b/babel.config.js index 49cab415..70b10a9b 100644 --- a/babel.config.js +++ b/babel.config.js @@ -2,6 +2,6 @@ module.exports = function (api) { api.cache(true); return { presets: ["babel-preset-expo"], - plugins: [], + plugins: [["@babel/plugin-proposal-decorators", { "legacy": true }]], }; }; diff --git a/package-lock.json b/package-lock.json index 2806d04b..b96fe54c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "dependencies": { "@expo/metro-config": "^0.18.11", "@expo/vector-icons": "^14.0.2", + "@nozbe/watermelondb": "^0.27.1", "@react-native-async-storage/async-storage": "1.23.1", "@shopify/flash-list": "1.6.4", "@testing-library/jest-native": "^5.4.3", @@ -54,6 +55,7 @@ }, "devDependencies": { "@babel/core": "^7.24.0", + "@babel/plugin-proposal-decorators": "^7.24.7", "@testing-library/react-native": "^12.3.1", "@types/jest": "^29.5.6", "@types/react": "~18.2.79", @@ -5186,6 +5188,46 @@ "node": ">= 8" } }, + "node_modules/@nozbe/simdjson": { + "version": "3.1.0-wmelon1", + "resolved": "https://registry.npmjs.org/@nozbe/simdjson/-/simdjson-3.1.0-wmelon1.tgz", + "integrity": "sha512-PQaHHQyvASrcrfzqkZ4ona43m0UjN81NuTWt6rJkOUePGDjxc8MNp2Q7jcod1CIdTsXJ13wRWeFbquwNfhpIQQ==" + }, + "node_modules/@nozbe/sqlite": { + "version": "3.40.1", + "resolved": "https://registry.npmjs.org/@nozbe/sqlite/-/sqlite-3.40.1.tgz", + "integrity": "sha512-uKJOW4sQi3neCmgKhqLr0IJKlb2y5q2p05U5CEDJrCxSyD2uVYvSdh7IMrPjF4sWtzc/Lnk462M4vde7Dn5NSw==" + }, + "node_modules/@nozbe/watermelondb": { + "version": "0.27.1", + "resolved": "https://registry.npmjs.org/@nozbe/watermelondb/-/watermelondb-0.27.1.tgz", + "integrity": "sha512-41Nlq0FMGkcr2CUgtPRQRVAbA8VYI6fpeGlX4eoiLhoh3nbPIlX4RIcjLIEoyGgkCUSNSnNvXrv0RMIJRl4nZQ==", + "dependencies": { + "@babel/runtime": "7.21.0", + "@nozbe/simdjson": "3.1.0-wmelon1", + "@nozbe/sqlite": "3.40.1", + "hoist-non-react-statics": "^3.3.2", + "lokijs": "npm:@nozbe/lokijs@1.5.12-wmelon6", + "rxjs": "^7.8.0", + "sql-escape-string": "^1.1.0" + } + }, + "node_modules/@nozbe/watermelondb/node_modules/@babel/runtime": { + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.21.0.tgz", + "integrity": "sha512-xwII0//EObnq89Ji5AKYQaRYiW/nZ3llSv29d49IuxPhKbtJoLP+9QUUZ4nVragQVtaVGeZrpB+ZtG/Pdy/POw==", + "dependencies": { + "regenerator-runtime": "^0.13.11" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@nozbe/watermelondb/node_modules/regenerator-runtime": { + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + }, "node_modules/@npmcli/fs": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-3.1.1.tgz", @@ -16822,6 +16864,12 @@ "node": ">=6" } }, + "node_modules/lokijs": { + "name": "@nozbe/lokijs", + "version": "1.5.12-wmelon6", + "resolved": "https://registry.npmjs.org/@nozbe/lokijs/-/lokijs-1.5.12-wmelon6.tgz", + "integrity": "sha512-GXsaqY8qTJ6xdCrGyno2t+ON2aj6PrUDdvhbrkxK/0Fp12C4FGvDg1wS+voLU9BANYHEnr7KRWfItDZnQkjoAg==" + }, "node_modules/loose-envify": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", @@ -19957,6 +20005,14 @@ "queue-microtask": "^1.2.2" } }, + "node_modules/rxjs": { + "version": "7.8.1", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.1.tgz", + "integrity": "sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg==", + "dependencies": { + "tslib": "^2.1.0" + } + }, "node_modules/safe-array-concat": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.2.tgz", @@ -20353,6 +20409,11 @@ "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" }, + "node_modules/sql-escape-string": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/sql-escape-string/-/sql-escape-string-1.1.0.tgz", + "integrity": "sha512-/kqO4pLZSLfV0KsBM2xkVh2S3GbjJJone37d7gYwLyP0c+REh3vnmkhQ7VwNrX76igC0OhJWpTg0ukkdef9vvA==" + }, "node_modules/ssri": { "version": "10.0.6", "resolved": "https://registry.npmjs.org/ssri/-/ssri-10.0.6.tgz", diff --git a/package.json b/package.json index 19d18a47..33a1edfd 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "dependencies": { "@expo/metro-config": "^0.18.11", "@expo/vector-icons": "^14.0.2", + "@nozbe/watermelondb": "^0.27.1", "@react-native-async-storage/async-storage": "1.23.1", "@shopify/flash-list": "1.6.4", "@testing-library/jest-native": "^5.4.3", @@ -61,6 +62,7 @@ }, "devDependencies": { "@babel/core": "^7.24.0", + "@babel/plugin-proposal-decorators": "^7.24.7", "@testing-library/react-native": "^12.3.1", "@types/jest": "^29.5.6", "@types/react": "~18.2.79", diff --git a/src/app/components/ModalMetrica.tsx b/src/app/components/ModalMetrica.tsx index be574fd6..95697b66 100644 --- a/src/app/components/ModalMetrica.tsx +++ b/src/app/components/ModalMetrica.tsx @@ -4,7 +4,7 @@ import { EMetricas, IMetrica } from "../interfaces/metricas.interface"; import Icon from "react-native-vector-icons/MaterialCommunityIcons"; import { MaterialCommunityIcons } from "@expo/vector-icons"; import { FontAwesome, Entypo } from "@expo/vector-icons"; -import { TextInput } from "react-native-gesture-handler"; +import { TextInput } from "react-native"; import ErrorMessage from "./ErrorMessage"; interface IProps { visible: boolean;