From c74461db3a76b107091019ebba980400ca4b61a5 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Wed, 20 Dec 2023 14:21:07 +0530 Subject: [PATCH] remove unused react-native-intersection-observer library (#18230) --- package.json | 1 - src/mocks/js_dependencies.cljs | 6 ------ .../react_native_intersection_observer.cljs | 12 ------------ yarn.lock | 9 +-------- 4 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 src/react_native/react_native_intersection_observer.cljs diff --git a/package.json b/package.json index 6da30dc20d..20c7321411 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,6 @@ "react-native-image-crop-picker": "0.40.0", "react-native-image-resizer": "^1.2.3", "react-native-image-viewing": "git+https://github.com/status-im/react-native-image-viewing.git#refs/tags/v0.2.1.status", - "react-native-intersection-observer": "^0.2.0", "react-native-keychain": "8.1.2", "react-native-languages": "^3.0.2", "react-native-linear-gradient": "^2.8.0", diff --git a/src/mocks/js_dependencies.cljs b/src/mocks/js_dependencies.cljs index 15355826dd..66973e6317 100644 --- a/src/mocks/js_dependencies.cljs +++ b/src/mocks/js_dependencies.cljs @@ -302,11 +302,6 @@ {:clamp nil :withPause (fn [])}) -(def react-native-intersection-observer - #js - {:InView #js {} - :IOFlatList #js {}}) - (def react-native-languages (clj->js {:default {:language "en" :addEventListener (fn []) @@ -421,7 +416,6 @@ "react-native-transparent-video" react-native-transparent-video "react-native-orientation-locker" react-native-orientation-locker "react-native-gifted-charts" react-native-gifted-charts - "react-native-intersection-observer" react-native-intersection-observer "../resources/data/emojis/en.json" (js/JSON.parse (slurp "./resources/data/emojis/en.json")) "../src/js/worklets/core.js" worklet-factory diff --git a/src/react_native/react_native_intersection_observer.cljs b/src/react_native/react_native_intersection_observer.cljs deleted file mode 100644 index d44aa621ce..0000000000 --- a/src/react_native/react_native_intersection_observer.cljs +++ /dev/null @@ -1,12 +0,0 @@ -(ns react-native.react-native-intersection-observer - (:require - ["react-native-intersection-observer" :refer [InView IOFlatList]] - [react-native.flat-list :refer [base-list-props]] - [reagent.core :as reagent])) - -(def view (reagent/adapt-react-class InView)) -(def flat-list-comp (reagent/adapt-react-class IOFlatList)) - -(defn flat-list - [props] - [flat-list-comp (base-list-props props)]) diff --git a/yarn.lock b/yarn.lock index 6b20800a4c..dbe98e461c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7380,7 +7380,7 @@ lodash.throttle@^4.1.1: resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4" integrity sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ== -lodash@4.17.x, lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0: +lodash@4.17.x, lodash@^4.17.10, lodash@^4.17.21, lodash@^4.17.4, lodash@^4.7.0: version "4.17.21" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== @@ -9167,13 +9167,6 @@ react-native-image-resizer@^1.2.3: version "0.2.1" resolved "git+https://github.com/status-im/react-native-image-viewing.git#94af89356f2e4e08f462370c77e4778d7626ce2f" -react-native-intersection-observer@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/react-native-intersection-observer/-/react-native-intersection-observer-0.2.0.tgz#15a07cf2adbab6cd9821986168d5484405674ad9" - integrity sha512-h48i7AjYl1BLkfTupiJqv7dLUdLmxBIf4AxlrzvUvy5PLr3bnEFGTAMjaeUUcQklkdKSHRqIXP8wz1ex49my4g== - dependencies: - lodash "^4.0.0" - react-native-keychain@8.1.2: version "8.1.2" resolved "https://registry.yarnpkg.com/react-native-keychain/-/react-native-keychain-8.1.2.tgz#34291ae472878e5124d081211af5ede7d810e64f"