Skip to content

Commit 16acfc3

Browse files
authored
fix(NativeEventEmitter): load NativeAnimatedModule on macOS (#2302)
1 parent 5bf84b1 commit 16acfc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/react-native/src/private/animated/NativeAnimatedHelper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,9 @@ export default {
430430
nativeEventEmitter = new NativeEventEmitter(
431431
// 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
432432
// If you want to use the native module on other platforms, please remove this condition and test its behavior
433-
Platform.OS !== 'ios' ? null : NativeAnimatedModule,
433+
Platform.OS !== 'ios' && Platform.OS !== 'macos' // [macOS]
434+
? null
435+
: NativeAnimatedModule,
434436
);
435437
}
436438
return nativeEventEmitter;

0 commit comments

Comments
 (0)