From 734d9c25cb723177873f4cec0b92b6c45752027e Mon Sep 17 00:00:00 2001 From: Chris Bobbe Date: Mon, 8 Jun 2020 16:45:23 -0700 Subject: [PATCH] deps: Remove `react-native-orientation`. Fixes: #4118 --- .../npm/react-native-orientation_v3.x.x.js | 38 ------------------- ios/Podfile.lock | 6 --- package.json | 1 - yarn.lock | 5 --- 4 files changed, 50 deletions(-) delete mode 100644 flow-typed/npm/react-native-orientation_v3.x.x.js diff --git a/flow-typed/npm/react-native-orientation_v3.x.x.js b/flow-typed/npm/react-native-orientation_v3.x.x.js deleted file mode 100644 index e04b677d931..00000000000 --- a/flow-typed/npm/react-native-orientation_v3.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: f052bc3c508312d9a9f76d42d122cc0e -// flow-typed version: c6154227d1/react-native-orientation_v3.x.x/flow_>=v0.68.0 <=v0.103.x - -declare module "react-native-orientation" { - declare export type Orientations = - | "LANDSCAPE" - | "PORTRAIT" - | "PORTRAITUPSIDEDOWN" - | "UNKNOWN"; - - declare export type SpecificOrientations = - | "LANDSCAPE-LEFT" - | "LANDSCAPE-RIGHT" - | "PORTRAIT" - | "PORTRAITUPSIDEDOWN" - | "UNKNOWN"; - - declare module.exports: { - getInitialOrientation(): ?Orientations, - getOrientation((error: ?Error, payload?: Orientations) => void): void, - getSpecificOrientation( - (error: ?Error, payload?: SpecificOrientations) => void - ): void, - lockToPortrait(): void, - lockToLandscape(): void, - lockToLandscapeRight(): void, - lockToLandscapeLeft(): void, - unlockAllOrientations(): void, - addOrientationListener((payload?: Orientations) => void): void, - removeOrientationListener((payload?: Orientations) => void): void, - addSpecificOrientationListener( - (payload?: SpecificOrientations) => void - ): void, - removeSpecificOrientationListener( - (payload?: SpecificOrientations) => void - ): void - }; -} diff --git a/ios/Podfile.lock b/ios/Podfile.lock index b0fbf473a0e..285932a816a 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -77,8 +77,6 @@ PODS: - React - react-native-notifications (1.5.0): - React - - react-native-orientation (3.1.3): - - React - react-native-photo-view (1.5.2): - React - react-native-safari-view (1.0.0): @@ -172,7 +170,6 @@ DEPENDENCIES: - react-native-image-picker (from `../node_modules/react-native-image-picker`) - "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)" - react-native-notifications (from `../node_modules/react-native-notifications`) - - react-native-orientation (from `../node_modules/react-native-orientation`) - react-native-photo-view (from `../node_modules/react-native-photo-view`) - react-native-safari-view (from `../node_modules/react-native-safari-view`) - react-native-safe-area (from `../node_modules/react-native-safe-area`) @@ -260,8 +257,6 @@ EXTERNAL SOURCES: :path: "../node_modules/@react-native-community/netinfo" react-native-notifications: :path: "../node_modules/react-native-notifications" - react-native-orientation: - :path: "../node_modules/react-native-orientation" react-native-photo-view: :path: "../node_modules/react-native-photo-view" react-native-safari-view: @@ -366,7 +361,6 @@ SPEC CHECKSUMS: react-native-image-picker: 3693786b3d5958c8f71deed66ec068b323565e0d react-native-netinfo: 0da34082d2cec3100c9b5073bb217e35f1142bdd react-native-notifications: ce37363008fe2d6a226da4e721eace23b6ae3ad9 - react-native-orientation: f1caf84d65f1a4fd4511a18f2b924e634ad7a628 react-native-photo-view: 63e9e61da873531f931008b545d8d10c5373ddf8 react-native-safari-view: 955d7160d159241b8e9395d12d10ea0ef863dcdd react-native-safe-area: 5fce5242419932bc05656f31bc5f0716e30be0f6 diff --git a/package.json b/package.json index cd859ce58a1..b72ae0afcf2 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "react-native-document-picker": "^3.2.4", "react-native-image-picker": "^0.26.10", "react-native-notifications": "^1.2.0", - "react-native-orientation": "^3.1.3", "react-native-photo-view": "alwx/react-native-photo-view#c58fd6b30", "react-native-safari-view": "2.0.0", "react-native-safe-area": "^0.4.1", diff --git a/yarn.lock b/yarn.lock index 4a470df7c54..cce3023a5b9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7961,11 +7961,6 @@ react-native-notifications@^1.2.0: core-js "^1.0.0" uuid "^2.0.3" -react-native-orientation@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/react-native-orientation/-/react-native-orientation-3.1.3.tgz#d45803841fe94b6cce9acbe904fd5ca191a3711e" - integrity sha512-A0h0E+2f95X4avmhaBG1ZT8WDxBACA/q//JN2eF1E7kq8AJVxt5XDiavv+aSBkBlqFsfF3bIS+T/DB5mXmnxuA== - react-native-photo-view@alwx/react-native-photo-view#c58fd6b30: version "1.5.2" resolved "https://codeload.github.com/alwx/react-native-photo-view/tar.gz/c58fd6b30d627fa23e39520d4fc3325ade8b0a51"