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

Header is rendered behind Card is navigator mode is modal and headerTransparent is true #6717

Closed
dulmandakh opened this issue Sep 23, 2019 · 6 comments

Comments

@dulmandakh
Copy link
Contributor

Current Behavior

When I set Stack navigator mode to modal, and set headerTransparent to true on screen options, header is rendered behind the Card. Therefore, header is covered and invisible to user then hides navigation.

Expected Behavior

User should be able to see header, thus navigation.

How to reproduce

const Stack = createStackNavigator();
<Stack.Navigator mode="modal">
  <Stack.Screen
    name="Modal"
    options={{headerTransparent: true}}
    component={() => <View style={{backgroundColor: '#0006', flex: 1}} />}
  />
</Stack.Navigator>

Your Environment

software version
react-navigation 5.0.0-alpha.17
react-native 0.61.0-rc.3
node v12.10.0
npm or yarn v1.17.3
@dulmandakh
Copy link
Contributor Author

On Android, header is visible but cannot tap back button.

@dulmandakh
Copy link
Contributor Author

@satya164 thanks for the fix, but the issue still persists on Android

@dulmandakh
Copy link
Contributor Author

@satya the issue still persists, when I try to click back button on the header, item behind it'll receive touch event.

@satya164
Copy link
Member

satya164 commented Oct 11, 2019

@dulmandakh can you share a demo? I tested again in the example app and I can press on the back button fine on Android with headerTransparent: true.

@satya164 satya164 transferred this issue from react-navigation/navigation-ex Feb 7, 2020
@MaksimAbramchuk
Copy link

still having this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants