Skip to content

Commit

Permalink
Make setLayoutAnimationEnabledExperimental a no-op in Bridgeless (#48856
Browse files Browse the repository at this point in the history
)

Summary:
Pull Request resolved: #48856

Refactor setLayoutAnimationEnabledExperimental in BridgelessUIManager.js to be a no-op in the new architecture

Changelog:
[Android][Fixed] - Make `setLayoutAnimationEnabledExperimental` a no-op in Bridgeless

Reviewed By: javache

Differential Revision: D68313694

fbshipit-source-id: 7a79fad72b1eeda5af3ff629a609d53e4f08f26d
  • Loading branch information
arushikesarwani94 authored and facebook-github-bot committed Jan 22, 2025
1 parent c8a387c commit 44da5d2
Showing 1 changed file with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,9 @@ const UIManagerJSPlatformAPIs = Platform.select({
return [];
},
setLayoutAnimationEnabledExperimental: (enabled: boolean): void => {
/**
* Layout animations are always enabled in the New Architecture.
* They cannot be turned off.
*/
if (!enabled) {
raiseSoftError(
'setLayoutAnimationEnabledExperimental(false)',
'Layout animations are always enabled in the New Architecture.',
if (__DEV__) {
console.warn(
'setLayoutAnimationEnabledExperimental is currently a no-op in the New Architecture.',
);
}
},
Expand Down

0 comments on commit 44da5d2

Please sign in to comment.