From cee6f23aa5a9bfe017eba81f1a64fa017001d4b2 Mon Sep 17 00:00:00 2001 From: Efstathios Ntonas Date: Tue, 12 Sep 2023 10:53:05 +0300 Subject: [PATCH] fix ReferenceError: Property '_IS_FABRIC' doesn't exist (#5065) fixes https://github.com/software-mansion/react-native-reanimated/issues/5061 Co-authored-by: Efstathios Ntonas --- src/reanimated2/NativeMethods.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reanimated2/NativeMethods.ts b/src/reanimated2/NativeMethods.ts index b29ac0ff028..364e3e3a409 100644 --- a/src/reanimated2/NativeMethods.ts +++ b/src/reanimated2/NativeMethods.ts @@ -62,7 +62,7 @@ if (isWeb()) { return null; } - const measured = _IS_FABRIC + const measured = global._IS_FABRIC ? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion _measureFabric!(viewTag as ShadowNodeWrapper) : // eslint-disable-next-line @typescript-eslint/no-non-null-assertion