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

formSheet + fitToContents => observing extra padding on iOS #2697

Open
RohovDmytro opened this issue Feb 13, 2025 · 1 comment
Open

formSheet + fitToContents => observing extra padding on iOS #2697

RohovDmytro opened this issue Feb 13, 2025 · 1 comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided

Comments

@RohovDmytro
Copy link

RohovDmytro commented Feb 13, 2025

Description

Not sure if this is an iOS limitation or a bug. There's an extra bottom padding that seems to match the bottom inset of the screen. Me personally would not call this matching the size of the content (fitToContents).

Image

Steps to reproduce

  1. https://github.com/RohovDmytro/react-native-screams

  2. Open example "form-sheet-extra-padding"

Snack or a link to a repository

https://github.com/RohovDmytro/react-native-screams

Screens version

4.7.0-beta.4

React Native version

0.76.7

Platforms

iOS

JavaScript runtime

Hermes

Workflow

Expo bare workflow

Architecture

Paper (Old Architecture)

Build type

Debug mode

Device

iOS simulator

Device model

No response

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: iOS This issue is specific to iOS labels Feb 13, 2025
@RohovDmytro
Copy link
Author

RohovDmytro commented Feb 13, 2025

Workaround that makes job done:

style={{ marginBottom: -insets.bottom }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

1 participant