From 2d8501053983883325f668e1ae38715afc9a4299 Mon Sep 17 00:00:00 2001 From: "satyajit.happy" Date: Sun, 6 Oct 2019 04:34:42 +0200 Subject: [PATCH] fix: fix header buttons not clickable on Android with headerTransparent --- src/views/Stack/StackItem.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/views/Stack/StackItem.tsx b/src/views/Stack/StackItem.tsx index d8a974557..b1dff0fc0 100644 --- a/src/views/Stack/StackItem.tsx +++ b/src/views/Stack/StackItem.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { View, StyleSheet, Platform, StyleProp, ViewStyle } from 'react-native'; +import { View, StyleSheet, StyleProp, ViewStyle } from 'react-native'; import Animated from 'react-native-reanimated'; import { NavigationRoute } from 'react-navigation'; import { Props as HeaderContainerProps } from '../Header/HeaderContainer'; @@ -169,7 +169,6 @@ export default class StackItem extends React.PureComponent { navigation, getPreviousRoute, styleInterpolator: headerStyleInterpolator, - style: styles.header, }) : null} @@ -186,8 +185,4 @@ const styles = StyleSheet.create({ scene: { flex: 1, }, - header: { - // This is needed to show elevation shadow - zIndex: Platform.OS === 'android' ? 1 : 0, - }, });