Bluesky app fork with some witchin' additions 💫

temporary react-native-view-shot patch (#8383)

* temp patch

* fix

authored by hailey.at and committed by GitHub f3bc9624 2fab992c

+3
patches/react-native-view-shot+4.0.3.md
··· 1 + ## react-native-view-shot patch 2 + 3 + Temporary patch for web, where `view`'s type has changed.
+28
patches/react-native-view-shot+4.0.3.patch
··· 1 + diff --git a/node_modules/react-native-view-shot/src/index.js b/node_modules/react-native-view-shot/src/index.js 2 + index fa76d7e..018b686 100644 3 + --- a/node_modules/react-native-view-shot/src/index.js 4 + +++ b/node_modules/react-native-view-shot/src/index.js 5 + @@ -125,13 +125,17 @@ export function captureRef<T: React$ElementType>( 6 + } 7 + } 8 + if (typeof view !== "number") { 9 + - const node = findNodeHandle(view); 10 + - if (!node) { 11 + - return Promise.reject( 12 + - new Error("findNodeHandle failed to resolve view=" + String(view)) 13 + - ); 14 + + if (Platform.OS == 'web') { 15 + + view = view; 16 + + } else { 17 + + const node = findNodeHandle(view); 18 + + if (!node) { 19 + + return Promise.reject( 20 + + new Error("findNodeHandle failed to resolve view=" + String(view)) 21 + + ); 22 + + } 23 + + view = node; 24 + } 25 + - view = node; 26 + } 27 + const { options, errors } = validateOptions(optionsObject); 28 + if (__DEV__ && errors.length > 0) {