Go back gesture on iOS to translucent header has weird behavior
See original GitHub issueDescription
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
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
- Create view with translucent header and place something there to see the actual issue during transition.
- 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.
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:
- Created 3 years ago
- Reactions:2
- Comments:7 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can I close this issue then? I don’t think there is much to be added here.
@WoLewicki thank you! I’ll try my luck with option 1 then. 😃