Skip to content

Commit

Permalink
Merge pull request #26385 from adamgrzybowski/@swm/fix-overlay
Browse files Browse the repository at this point in the history
Fix overlay size
  • Loading branch information
mountiny authored Sep 13, 2023
2 parents 8721176 + a7816fd commit a29fac2
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/styles/styles.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import {defaultStyles as defaultPickerStyles} from 'react-native-picker-select/src/styles';
import {StyleSheet} from 'react-native';
import lodashClamp from 'lodash/clamp';
import fontFamily from './fontFamily';
import addOutlineWidth from './addOutlineWidth';
Expand Down Expand Up @@ -1544,8 +1543,14 @@ const styles = {
},

overlayStyles: (current) => ({
...StyleSheet.absoluteFillObject,
backgroundColor: themeColors.overlay,
position: 'fixed',

// We need to stretch the overlay to cover the sidebar and the translate animation distance.
left: -2 * variables.sideBarWidth,
top: 0,
bottom: 0,
right: 0,
backgroundColor: Colors.black,
opacity: current.progress.interpolate({
inputRange: [0, 1],
outputRange: [0, variables.overlayOpacity],
Expand Down

0 comments on commit a29fac2

Please sign in to comment.