Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: fix header buttons not clickable on Android. fixes #108
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 3, 2019
1 parent bc3586a commit da944cc
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/stack/src/views/Stack/StackItem.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -165,7 +165,6 @@ export default class StackItem extends React.PureComponent<Props> {
state,
getPreviousRoute,
styleInterpolator: headerStyleInterpolator,
style: styles.header,
})
: null}
</View>
Expand All @@ -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,
},
});

0 comments on commit da944cc

Please sign in to comment.