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

When Farbic is turned on, if the previous page used react native reanimated useAnimatedStyle, it will cause RNSScreen. m's viewDidLayoutSubviews to be called multiple times #6639

Open
renyufei8023 opened this issue Oct 26, 2024 · 5 comments
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snippet of code, snack or repo is provided

Comments

@renyufei8023
Copy link

Description

If I don't use useAnimatedStyle, it's normal. onLayout will only be called once

Steps to reproduce

1.Page A using the AusAnimatedStyle of React Native Reanimated
2.push to page B,this page headerShow is true
3.Page B onLayou Always callback

Snack or a link to a repository

https://github.com/renyufei8023/RNTest

Reanimated version

3.16.1

React Native version

0.74.5

Platforms

iOS

JavaScript runtime

Hermes

Workflow

React Native

Architecture

Fabric (New Architecture)

Build type

Debug app & dev bundle

Device

None

Device model

No response

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 Oct 26, 2024
@renyufei8023
Copy link
Author

If I use React Native [email protected] Normal in debug mode, but abnormal in release mode

@renyufei8023
Copy link
Author

@DrZoidberg09
Copy link

Same issue here with Expo 52, rn 0.76.1, newest rn-reanimated and rn-screens and react-navigation 7

@renyufei8023
Copy link
Author

@odogono @javascripter @notjosh Can you take a look at this question?

@renyufei8023
Copy link
Author

@

Same issue here with Expo 52, rn 0.76.1, newest rn-reanimated and rn-screens and react-navigation 7

Try it out [email protected] Whether it can be or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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