Skip to content

Commit

Permalink
fix(NativeEventEmitter): load NativeAnimatedModule on macOS (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
Saadnajmi authored Dec 12, 2024
1 parent 5bf84b1 commit 16acfc3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ 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' ? null : NativeAnimatedModule,
Platform.OS !== 'ios' && Platform.OS !== 'macos' // [macOS]
? null
: NativeAnimatedModule,
);
}
return nativeEventEmitter;
Expand Down

0 comments on commit 16acfc3

Please sign in to comment.