fix: fix header buttons not clickable on Android. fixes #108

This commit is contained in:
satyajit.happy
2019-10-03 18:57:13 +02:00
parent bc3586ae3e
commit da944ccef9

View File

@@ -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 { StackNavigationState } from '@react-navigation/routers';
import { Route } from '@react-navigation/core';
@@ -165,7 +165,6 @@ export default class StackItem extends React.PureComponent<Props> {
state,
getPreviousRoute,
styleInterpolator: headerStyleInterpolator,
style: styles.header,
})
: null}
</View>
@@ -182,8 +181,4 @@ const styles = StyleSheet.create({
scene: {
flex: 1,
},
header: {
// This is needed to show elevation shadow
zIndex: Platform.OS === 'android' ? 1 : 0,
},
});