Something went wrong. Try again.
Bluesky app fork with some witchin' additions 💫
Something went wrong. Try again.
814 B · 28 lines
1234567891011121314151617181920212223242526272829diff --git a/src/index.js b/src/index.jsindex fa76d7e..018b686 100644--- a/src/index.js+++ b/src/index.js@@ -125,13 +125,17 @@ export function captureRef<T: React$ElementType>( } } if (typeof view !== "number") {- const node = findNodeHandle(view);- if (!node) {- return Promise.reject(- new Error("findNodeHandle failed to resolve view=" + String(view))- );+ if (Platform.OS == 'web') {+ view = view;+ } else {+ const node = findNodeHandle(view);+ if (!node) {+ return Promise.reject(+ new Error("findNodeHandle failed to resolve view=" + String(view))+ );+ }+ view = node; }- view = node; } const { options, errors } = validateOptions(optionsObject); if (__DEV__ && errors.length > 0) {