Skip to content

Commit

Permalink
Merge pull request #2 from roverdotcom/fix-action-sheet-height
Browse files Browse the repository at this point in the history
Fix Root View height prop
  • Loading branch information
fricchi authored Jan 4, 2023
2 parents b257bda + 3c0abdf commit 0049884
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 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: 1 addition & 2 deletions dist/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export default forwardRef(function ActionSheet(_a, ref) {
var lock = useRef(false);
var panViewRef = useRef();
var gestureBoundaries = useRef({});
var initialWindowHeight = useRef(Dimensions.get('screen').height);
var _9 = useState({
width: Dimensions.get('window').width,
height: 0,
Expand Down Expand Up @@ -614,7 +613,7 @@ export default forwardRef(function ActionSheet(_a, ref) {
? getZIndexFromStack(props.id, contextRef.current)
: 999,
width: '100%',
height: initialWindowHeight.current
height: '100%'
},
pointerEvents: (props === null || props === void 0 ? void 0 : props.backgroundInteractionEnabled)
? 'box-none'
Expand Down
3 changes: 1 addition & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ export default forwardRef<ActionSheetRef, ActionSheetProps>(
scrollOffset?: number;
};
}>({});
const initialWindowHeight = useRef(Dimensions.get('screen').height);
const [dimensions, setDimensions] = useState<{
width: number;
height: number;
Expand Down Expand Up @@ -793,7 +792,7 @@ export default forwardRef<ActionSheetRef, ActionSheetProps>(
? getZIndexFromStack(props.id, contextRef.current)
: 999,
width: '100%',
height: initialWindowHeight.current,
height: '100%',
},
pointerEvents: props?.backgroundInteractionEnabled
? 'box-none'
Expand Down

0 comments on commit 0049884

Please sign in to comment.