Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reanimated disables React Native LayoutAnimation on New Architecture #6751

Open
mhoran opened this issue Nov 23, 2024 · 0 comments
Open

Reanimated disables React Native LayoutAnimation on New Architecture #6751

mhoran opened this issue Nov 23, 2024 · 0 comments
Assignees
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@mhoran
Copy link

mhoran commented Nov 23, 2024

Description

When Reanimated is added to a project, it disables React Native's own LayoutAnimation on New Architecture.

Configuring a LayoutAnimation bails out at https://github.com/facebook/react-native/blob/a05d573f9eafc345f4e056f444d4a4527c1a2fb2/packages/react-native/ReactCommon/react/renderer/uimanager/UIManager.cpp#L491, which is nulled out by

when Reanimated is initialized.

This was reported downstream in React Native as well as Expo.

I don't think this is expected, and it used to work on Paper.

Steps to reproduce

  1. Launch the Snack in Expo v52 on Android or iOS
  2. Press the button
  3. See that the text does not ease in
  4. Change to Expo v51
  5. See that the text eases in

Snack or a link to a repository

https://snack.expo.dev/@mhoran/restless-yellow-cereal

Reanimated version

3.16.2

React Native version

0.76.3

Platforms

Android, iOS, macOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided labels Nov 23, 2024
@bartlomiejbloniarz bartlomiejbloniarz self-assigned this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Android This issue is specific to Android Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided
Projects
None yet
Development

No branches or pull requests

2 participants