fix: allow HeaderBackground's subViews to be touchable (#8314)

When you're using the following options on `Stack`, the touch event goes to the behind of the Header and we can't really solve this problem in given `headerBackground` component level.
```
 options={{
          headerTransparent: true,
          headerBackground: 
```

### Problem
![May-23-2020 09-31-01](https://user-images.githubusercontent.com/916690/82726502-ebc11e80-9ce4-11ea-81d0-cc6a18bd70a7.gif)
This commit is contained in:
Bright Lee
2020-05-23 18:14:59 +02:00
committed by GitHub
parent d3ace96981
commit 021a9111d7

View File

@@ -312,7 +312,7 @@ export default class HeaderSegment extends React.Component<Props, State> {
return (
<React.Fragment>
<Animated.View
pointerEvents="none"
pointerEvents="box-none"
style={[StyleSheet.absoluteFill, backgroundStyle]}
>
{headerBackground ? (