Fix post menu rounded corners (#2472)

This commit is contained in:
Elias Nahum
2018-12-28 08:35:18 -03:00
parent 776a9d8fad
commit b8766bbbf2

View File

@@ -227,6 +227,8 @@ export default class SlideUpPanel extends PureComponent {
transform: [{translateY: this.translateY}],
};
const headerComponent = header(this.headerRef);
return (
<TapGestureHandler
maxDurationMs={100000}
@@ -268,7 +270,7 @@ export default class SlideUpPanel extends PureComponent {
>
<Animated.View>
<SlideUpPanelIndicator/>
{header(this.headerRef)}
{headerComponent}
</Animated.View>
</PanGestureHandler>
<PanGestureHandler
@@ -279,7 +281,7 @@ export default class SlideUpPanel extends PureComponent {
onGestureEvent={this.onGestureEvent}
onHandlerStateChange={this.onHandlerStateChange}
>
<Animated.View style={[styles.container, !header && styles.border]}>
<Animated.View style={[styles.container, !headerComponent && styles.border]}>
<NativeViewGestureHandler
ref={this.scrollRef}
waitFor={this.masterRef}