From 82069f3bef8bf8bc014e56f044f25e567a3501e5 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 31 Jan 2024 18:40:12 -0700 Subject: [PATCH] Use react-native-vision-camera submodule --- .editorconfig | 9 +++++++++ .gitmodules | 3 +++ package.json | 1 - react-native-vision-camera | 1 + tsconfig.json | 8 +++++++- yarn.lock | 5 ----- 6 files changed, 20 insertions(+), 7 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitmodules create mode 160000 react-native-vision-camera diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c4bd5fb --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*.json] +end_of_line = lf +charset = utf-8 +indent_style = space +indent_size = 2 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..c48e222 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "react-native-vision-camera"] + path = react-native-vision-camera + url = ssh://gitea@dev.railbird.ai:1123/railbird/react-native-vision-camera.git diff --git a/package.json b/package.json index 9c75b19..833af09 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "react-native-static-safe-area-insets": "^2.2.0", "react-native-svg": "13.9.0", "react-native-svg-charts": "^5.4.0", - "react-native-vision-camera": "^3.8.2", "typescript": "^5.3.3" }, "devDependencies": { diff --git a/react-native-vision-camera b/react-native-vision-camera new file mode 160000 index 0000000..fb42545 --- /dev/null +++ b/react-native-vision-camera @@ -0,0 +1 @@ +Subproject commit fb425458904eb240466768be08352973fd2f78d8 diff --git a/tsconfig.json b/tsconfig.json index 0e6371f..d423055 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,4 +1,10 @@ { - "compilerOptions": {}, + "compilerOptions": { + "paths": { + "react-native-vision-camera": [ + "./react-native-vision-camera/package/src/index" + ] + } + }, "extends": "expo/tsconfig.base" } diff --git a/yarn.lock b/yarn.lock index a31f8e8..8d54cfb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8417,11 +8417,6 @@ react-native-svg@^6.2.1: lodash "^4.16.6" pegjs "^0.10.0" -react-native-vision-camera@^3.8.2: - version "3.8.2" - resolved "https://registry.yarnpkg.com/react-native-vision-camera/-/react-native-vision-camera-3.8.2.tgz#f4f75f84c6a19e1c3474ddc0f7f785b5a526739b" - integrity sha512-MY39l2e3hNRPUefn2JPShOFExcw0PblbAcUGvJrIfS9pMzdIyceo0umRAx8lOGXzDUAdb+xy/tFWb8zGxKimCQ== - react-native@*: version "0.73.2" resolved "https://registry.yarnpkg.com/react-native/-/react-native-0.73.2.tgz#74ee163c8189660d41d1da6560411da7ce41a608"