Skip to content

Commit

Permalink
fix(tabheader): fixed transparency in background when sliding up
Browse files Browse the repository at this point in the history
  • Loading branch information
rollymaduk committed Oct 9, 2017
1 parent b320756 commit 126c0d2
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 54 deletions.
105 changes: 55 additions & 50 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/tabbedHeader/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ const Component = ({
children, onHeaderContentLayout, onTabBarLayout,
onLayout, opacity, tabHeight, styles, ...rest
}: any) => (
<Header tabHeight={tabHeight}>
<Animated.View onLayout={onHeaderContentLayout} style={[{ opacity, flex: 1 }, styles]}>
{React.Children.only(children)}
</Animated.View>
<Header onLayout={onLayout} tabHeight={tabHeight}>
<View onLayout={onHeaderContentLayout} style={{ ...styles, flex: 1 }}>
<Animated.View style={[{ opacity, flex: 1 }]}>
{React.Children.only(children)}
</Animated.View>
</View>
<View onLayout={onTabBarLayout}>
<TabBar
{...rest}
Expand Down

0 comments on commit 126c0d2

Please sign in to comment.