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

flicker screen problem #7146

Open
wvq opened this issue Mar 2, 2025 · 3 comments
Open

flicker screen problem #7146

wvq opened this issue Mar 2, 2025 · 3 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

@wvq
Copy link

wvq commented Mar 2, 2025

Description

I don't know why the screen keeps flickering. I tested several models of iPhone.

simplely useSharedValue and transform view's translateY, no matter using timing method or programmatically change the value, I't flickering.

reproduce-flickering-issue-repo

example.MP4

Steps to reproduce

  1. npx create-expo-app@latest
  2. add some screen
  3. use react-native-reanimated at first page
  4. second page flickering

Snack or a link to a repository

https://github.com/wvq/example-use-animated-keyboard.git

Reanimated version

3.17.1

React Native version

0.77.1

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo Go

Architecture

Fabric (New Architecture)

Build type

Release app & production bundle

Device

Real device

Device model

iPhone X, iPhone 15

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snippet of code, snack or repo is provided Platform: iOS This issue is specific to iOS labels Mar 2, 2025
@MatiPl01
Copy link
Member

MatiPl01 commented Mar 2, 2025

It looks like a long-known react-native-screen issue with the native stack header. Can you set headerShown to false on your navigator and see if the issue still persists?

like this:

 <StackNavigator.Navigator
  screenOptions={{
    headerShown: false
  }}>

Let me know when you test it.

@wvq
Copy link
Author

wvq commented Mar 3, 2025

@MatiPl01 It's true, the screen stop flickering when headerShow is false.

@MatiPl01
Copy link
Member

MatiPl01 commented Mar 3, 2025

Ok, good, so that is a react-native-screens related issue. We also encountered the same problems in our example app in Reanimated. I will keep this issue open so that we can come back to it in the future.

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