Skip to content

Commit

Permalink
fix(0.76, animated): load NativeAnimatedModule on macOS (#2321)
Browse files Browse the repository at this point in the history
* fix(NativeEventEmitter): load NativeAnimatedModule on macOS (#2302)

* update lock
  • Loading branch information
Saadnajmi authored Dec 13, 2024
1 parent 0f05bfc commit 76634cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
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
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3647,13 +3647,13 @@ __metadata:
languageName: unknown
linkType: soft

"@react-native/oss-library-example@workspace:*, @react-native/oss-library-example@workspace:packages/react-native-test-library":
"@react-native/oss-library-example@npm:0.76.5, @react-native/oss-library-example@workspace:packages/react-native-test-library":
version: 0.0.0-use.local
resolution: "@react-native/oss-library-example@workspace:packages/react-native-test-library"
dependencies:
"@babel/core": "npm:^7.25.2"
"@react-native/babel-preset": "npm:0.76.3"
react-native-macos: "workspace:*"
react-native-macos: "npm:0.76.5"
peerDependencies:
react: "*"
react-native-macos: "*"
Expand Down Expand Up @@ -3697,7 +3697,7 @@ __metadata:
"@react-native-community/cli-platform-android": "npm:15.0.1"
"@react-native-community/cli-platform-apple": "npm:15.0.1"
"@react-native-community/cli-platform-ios": "npm:15.0.1"
"@react-native/oss-library-example": "workspace:*"
"@react-native/oss-library-example": "npm:0.76.5"
"@react-native/popup-menu-android": "workspace:*"
flow-enums-runtime: "npm:^0.0.6"
invariant: "npm:^2.2.4"
Expand Down Expand Up @@ -12110,7 +12110,7 @@ __metadata:
languageName: unknown
linkType: soft

"react-native-macos@workspace:*, react-native-macos@workspace:packages/react-native":
"react-native-macos@npm:0.76.5, react-native-macos@workspace:packages/react-native":
version: 0.0.0-use.local
resolution: "react-native-macos@workspace:packages/react-native"
dependencies:
Expand Down

0 comments on commit 76634cd

Please sign in to comment.