Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Bottom Margin #394

Open
ice-cap0 opened this issue Oct 28, 2024 · 0 comments
Open

Invalid Bottom Margin #394

ice-cap0 opened this issue Oct 28, 2024 · 0 comments

Comments

@ice-cap0
Copy link

on iOS, ActionSheet is detached by default i.e. there is a gap between screen bottom and sheet bottom

is this expected? i don't mind all that much because the fix is easy but just wanted to make sure

current workaround:

const MySheet = (props: ActionSheetProps & { detached?: boolean }) => {
  const safeInsets = useSafeAreaInsets()
  const insets = {
    ...safeInsets,
    bottom: props.detached ? safeInsets.bottom : 0,
  }
  return (
    <ActionSheet
      safeAreaInsets={insets}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant