Skip to content

Commit

Permalink
#15 overflow: visible when popoverStyle includes shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffeyDev committed Mar 12, 2022
1 parent d268481 commit 86a0249
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Popover.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1152,10 +1152,18 @@ class BasePopover extends Component<BasePopoverProps, BasePopoverState> {
opacity: animatedValues.fade
};

const flattenedPopoverStyle = StyleSheet.flatten(popoverStyle);
const popoverViewStyle = {
...styles.dropShadow,
...styles.popoverContent,
...StyleSheet.flatten(popoverStyle),
...flattenedPopoverStyle,
...(
flattenedPopoverStyle.shadowColor ||
flattenedPopoverStyle.shadowOpacity ||
flattenedPopoverStyle.shadowRadius ||
flattenedPopoverStyle.shadowOffset
? { overflow: 'visible' as const }
: {}),
transform: [
{ translateX: animatedValues.translate.x },
{ translateY: animatedValues.translate.y },
Expand Down

0 comments on commit 86a0249

Please sign in to comment.