question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Content overlapping on screen transitions [createNativeStackNavigator]

See original GitHub issue

react native : 0.62 react navigation v5 : react-navigation/native : ^5.7.3 react-navigation/stack : ^5.9.0 expo - 38.0.8

glitch

I am using createNativeStackNavigator and i have headerLargeTitle enabled . This glitch usually happens for longer lists but , does happen on shorter lists too.

Repro-

You can reproduce this error on iOS (i am not sure if this error occurs on android) by putting two screens in a createNativeStackNavigator and setting the headerLargeTitle to true

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
WoLewickicommented, Aug 26, 2020

Great! Can I close this issue then?

1reaction
WoLewickicommented, Aug 26, 2020

I think it is not a glitch. You provided headerStyle: { backgroundColor: "#ffffff00" } which means it has 0 alpha value, so it is transparent. At the beginning of the transition, the content of the below screen appears under that header and it is fully visible due to that 0 alpha value. After the transition, it stops to be transparent since you didn’t provide headerTranslucent: true which would enable the content to go under the screen, so now it is opaque. Am I right or am I not seeing something?

Read more comments on GitHub >

github_iconTop Results From Across the Web

createStackNavigator - React Navigation
Provides a way for your app to transition between screens where each new screen ... also float over the screen so that it...
Read more >
Avoid react-native navigator scene overlapping - Stack Overflow
Navigator uses animations during transitions between two scenes. In your case it uses fade during the transition.
Read more >
createStackNavigator - React Navigation - Netlify
Provides a way for your app to transition between screens where each new screen ... also float over the screen so that it...
Read more >
How to change screen background while in transition ... - Reddit
I have made every screen background transparent. But on iOS, the transition between screens leads to a brief overlap of contents of the ......
Read more >
Support for react-native-screen 's createNativeStackNavigator
I was just wondering if transitions on gestures (e.g. swipe back) would be something that's possible with native stack compared to the js...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found