tangled mirror of catsky-馃惐 Soothing soft social-app fork with all the niche toggles! (Unofficial); for issues and PRs please put them on github:NekoDrone/catsky-social
at main 958 B view raw
1diff --git a/node_modules/react-native-view-shot/src/index.js b/node_modules/react-native-view-shot/src/index.js 2index 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) {