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.

Go back gesture on iOS to translucent header has weird behavior

See original GitHub issue

Description

When swiping back on iOS from view with not translucent header to translucent one there is an issue during transition like on the screenshot below. Current header becomes translucent and we can see how previous view transition to its place.

Is this a bug or do I need to explicitly set white color for that header somewhere?

Maybe related to #803

Screenshots

image

NativeStackNavigationOptions

const whiteScreenOptions: NativeStackNavigationOptions = {
  headerTitle: 'Create package',
  headerShown: true,
  headerHideShadow: true,
  headerBackTitleVisible: false,
  headerTopInsetEnabled: true,
  headerTintColor: Colors.grey[900],
};
const translucentScreenOptions: NativeStackNavigationOptions = {
  headerTitle: '',
  headerShown: true,
  headerTranslucent: true,
  headerStyle: {
    backgroundColor: 'transparent',
  },
  headerHideShadow: true,
  headerBackTitleVisible: false,
  headerTopInsetEnabled: true,
  headerTintColor: Colors.grey[900],
};

Steps To Reproduce

  1. Create view with translucent header and place something there to see the actual issue during transition.
  2. Create view with not translucent header and try to go back to above one on iOS with swipe gesture.

Expected behavior

This part of the view should stay white till the end of the transition. image

Package versions

@react-navigation/native: 5.9.2 expo: 40.0.1 react: 17.0.1 react-native: 0.63.4 react-native-screens: 2.17.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
WoLewickicommented, Apr 26, 2021

Can I close this issue then? I don’t think there is much to be added here.

1reaction
chybisovcommented, Apr 26, 2021

@WoLewicki thank you! I’ll try my luck with option 1 then. 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gesture, swipe, and press to navigate your iPhone 13 and ...
Use gestures on your iPhone with Face ID to quickly navigate, multitask, adjust settings, and access all the things you do most.
Read more >
Remove text from Back button keeping the icon - Stack Overflow
Solution · 1. Create custom class of the UINavigationController import UIKit class NavigationController: UINavigationController { override func viewDidLoad() { ...
Read more >
[Solved]-Strange behavior when setting height of a table header view
I put the print(tableHeader.frame.size) in viewDidLayoutSubviews() as well and the result is (374.0, 501.0). And when I adjust header height in this function...
Read more >
The Accessibility Bugs Introduced and Resolved in iOS 14 ...
This post contains details of the VoiceOver, low vision, and braille bugs which we believe have been introduced in these releases; as well...
Read more >
extended_image | Flutter Package - Pub.dev
1.22.6 to 2.0, Flutter Api has breaking change,please use ... headers, The HTTP headers that will be used with [HttpClient.get] to fetch image...
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