From 87fb9c6a1fb6b8c839b65b90ad16f574f45a1294 Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Thu, 20 Apr 2023 10:15:09 +0200 Subject: [PATCH] Fix scrollTo on Fabric (#4378) ## Summary The flag `_IS_FABRIC` is only defined on React Runtime, we can't use them on Reanimated Runtime. I removed the check of this flag for Reanimated Runtime because this one prevents any `_dispatchCommand` call. ## Test plan Run any scrollTo example on Fabric --- 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 16ad458ed3eb..e7d401420160 100644 --- a/src/reanimated2/NativeMethods.ts +++ b/src/reanimated2/NativeMethods.ts @@ -86,7 +86,7 @@ export function dispatchCommand( args: Array ): void { 'worklet'; - if (!_WORKLET || !isNative || !global._IS_FABRIC) { + if (!_WORKLET || !isNative) { return; }