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

Shared transitions break when parent element uses justifyContent #5984

Open
stevengoldberg opened this issue May 6, 2024 · 0 comments
Open
Labels
Area: Shared Element Transitions Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@stevengoldberg
Copy link

Description

When using a shared element transition, applying a justifyContent style to the parent of the transitioning element will cause the transition to break.

Without justifyContent:

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-06.at.17.59.55.mp4

With justifyContent:

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-05-06.at.18.01.44.mp4

Steps to reproduce

  1. Apply a sharedTransitionTag to an element
  2. Apply a justifyContent style to the element's parent
  3. Navigate between screens

Snack or a link to a repository

https://github.com/stevengoldberg/shared-transition-bug/

Reanimated version

3.11.0

React Native version

0.73.6

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo Dev Client

Architecture

Paper (Old Architecture)

Build type

Debug app & dev bundle

Device

Real device

Device model

iPhone 15 Pro

Acknowledgements

Yes

@github-actions github-actions bot added Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Shared Element Transitions 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