From 3d7275802b54623fec2b19cde017195a2cbc90c7 Mon Sep 17 00:00:00 2001 From: Saad Najmi Date: Tue, 3 Dec 2024 18:02:12 -0800 Subject: [PATCH] Update NativeAnimatedHelper.js --- .../react-native/src/private/animated/NativeAnimatedHelper.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/src/private/animated/NativeAnimatedHelper.js b/packages/react-native/src/private/animated/NativeAnimatedHelper.js index 9746d9e5bd5b7d..73f4b92004e11e 100644 --- a/packages/react-native/src/private/animated/NativeAnimatedHelper.js +++ b/packages/react-native/src/private/animated/NativeAnimatedHelper.js @@ -430,7 +430,7 @@ export default { nativeEventEmitter = new NativeEventEmitter( // T88715063: NativeEventEmitter only used this parameter on iOS. Now it uses it on all platforms, so this code was modified automatically to preserve its behavior // If you want to use the native module on other platforms, please remove this condition and test its behavior - ( Platform.OS !== 'ios'|| Platform.OS !== 'macos' ) ? null : NativeAnimatedModule, + (Platform.OS !== 'ios' && Platform.OS !== 'macos') ? null : NativeAnimatedModule, ); } return nativeEventEmitter;