Skip to content

Commit

Permalink
fix overlay not fill safe area padding
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Aug 22, 2022
1 parent 724a2f6 commit 1f190ab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/src/index.d.ts.map

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

3 changes: 2 additions & 1 deletion dist/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,8 @@ export default forwardRef(function ActionSheet(_a, ref) {
},
]}>
{!(props === null || props === void 0 ? void 0 : props.backgroundInteractionEnabled) ? (<TouchableOpacity onPress={onTouch} activeOpacity={defaultOverlayOpacity} testID={(_b = props.testIDs) === null || _b === void 0 ? void 0 : _b.backdrop} style={{
height: dimensions.height,
height: Dimensions.get('window').height + 100 ||
dimensions.height + safeAreaPaddingTop.current + 100,
width: '100%',
position: 'absolute',
zIndex: 2,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-actions-sheet",
"version": "0.8.0",
"version": "0.8.1",
"description": "A Cross Platform(Android & iOS) ActionSheet with a robust and flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.",
"main": "./dist/index.js",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,9 @@ export default forwardRef<ActionSheetRef, ActionSheetProps>(
activeOpacity={defaultOverlayOpacity}
testID={props.testIDs?.backdrop}
style={{
height: dimensions.height,
height:
Dimensions.get('window').height + 100 ||
dimensions.height + safeAreaPaddingTop.current + 100,
width: '100%',
position: 'absolute',
zIndex: 2,
Expand Down

1 comment on commit 1f190ab

@vercel
Copy link

@vercel vercel bot commented on 1f190ab Aug 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

rnas – ./

rnas.vercel.app
rnas-git-master-ammarahm-ed.vercel.app
rnas-ammarahm-ed.vercel.app

Please sign in to comment.