From 770674340b5ed3caefe2b302030127fed9f51d5e Mon Sep 17 00:00:00 2001 From: Abijah Migisho Date: Wed, 27 Apr 2022 16:43:51 +0300 Subject: [PATCH] Update the project --- package.json | 40 ++++++++++++++++++++-------------------- tsconfig.json | 22 ++++++++++++++++++---- 2 files changed, 38 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index e88c4d6..dd6861d 100644 --- a/package.json +++ b/package.json @@ -8,37 +8,37 @@ "lint": "eslint . --ext .ts,.tsx" }, "dependencies": { - "@expo/vector-icons": "^10.1.0", + "@expo/vector-icons": "^12.0.0", "@react-native-community/masked-view": "0.1.6", - "@react-native-community/viewpager": "3.3.0", + "@react-native-community/viewpager": "5.0.11", "@react-navigation/material-bottom-tabs": "^5.1.1", "@react-navigation/native": "^5.0.9", "@react-navigation/stack": "^5.2.19", - "expo": "^37.0.0", - "expo-av": "~8.1.0", - "expo-camera": "~8.2.0", - "expo-linear-gradient": "~8.1.0", - "lottie-react-native": "~2.6.1", - "react": "16.9.0", - "react-dom": "16.9.0", - "react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz", - "react-native-gesture-handler": "~1.6.0", + "expo": "^44.0.0", + "expo-av": "~10.2.0", + "expo-camera": "~12.1.2", + "expo-linear-gradient": "~11.0.3", + "lottie-react-native": "5.0.1", + "react": "17.0.1", + "react-dom": "17.0.1", + "react-native": "0.64.3", + "react-native-gesture-handler": "~2.1.0", "react-native-paper": "^3.9.0", - "react-native-reanimated": "~1.7.0", - "react-native-safe-area-context": "0.7.3", - "react-native-screens": "~2.2.0", + "react-native-reanimated": "~2.3.1", + "react-native-safe-area-context": "3.3.2", + "react-native-screens": "~3.10.1", "react-native-status-bar-height": "^2.5.0", - "react-native-web": "^0.11.7", + "react-native-web": "0.17.1", "styled-components": "^5.0.1" }, "devDependencies": { - "@babel/core": "^7.8.7", - "@types/react": "^16.9.11", - "@types/react-native": "^0.60.22", + "@babel/core": "^7.12.9", + "@types/react": "~17.0.21", + "@types/react-native": "~0.64.12", "@types/styled-components": "^5.1.0", "@typescript-eslint/eslint-plugin": "^2.27.0", "@typescript-eslint/parser": "^2.27.0", - "babel-preset-expo": "^8.1.0", + "babel-preset-expo": "9.0.2", "eslint": "^6.8.0", "eslint-config-airbnb": "^18.0.1", "eslint-config-airbnb-typescript": "^7.2.1", @@ -51,7 +51,7 @@ "eslint-plugin-react": "^7.19.0", "eslint-plugin-react-hooks": "^3.0.0", "prettier": "^1.19.1", - "typescript": "^3.8.3" + "typescript": "~4.3.5" }, "private": true } diff --git a/tsconfig.json b/tsconfig.json index f0aa46a..a444321 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,14 +2,28 @@ "compilerOptions": { "allowSyntheticDefaultImports": true, "jsx": "react-native", - "lib": ["dom", "esnext"], + "lib": [ + "dom", + "esnext" + ], "moduleResolution": "node", "noEmit": true, "skipLibCheck": true, "resolveJsonModule": true, "strict": true }, - "include": ["**/src/**/*.ts", "**/src/**/*.tsx", "App.tsx"], - "exclude": ["node_modules", "babel.config.js", "prettier.config.js"], - "files": ["src/@types/index.d.ts"] + "include": [ + "**/src/**/*.ts", + "**/src/**/*.tsx", + "App.tsx" + ], + "exclude": [ + "node_modules", + "babel.config.js", + "prettier.config.js" + ], + "files": [ + "src/@types/index.d.ts" + ], + "extends": "expo/tsconfig.base" }