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

[v4] Text is cropped for buttons inside bottomsheet on IOS only #1867

Open
kav opened this issue Jun 21, 2024 · 0 comments
Open

[v4] Text is cropped for buttons inside bottomsheet on IOS only #1867

kav opened this issue Jun 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kav
Copy link

kav commented Jun 21, 2024

Bug

Buttons appearing inside a bottom sheet (on IOS) get cropped off. This behavior is random and does not occur every time, the best way to reproduce is to constantly refresh the app. This happens in the simulator and on my ios device.

Screen Shot 2022-12-07 at 9 08 23 AM

Another example:

Screen Shot 2022-12-07 at 9 20 26 AM

Environment info

Library Version
@gorhom/bottom-sheet 4.6.0
react-native 0.74.2
react-native-reanimated 3.10.1
react-native-gesture-handler 2.16.1

Steps To Reproduce

  1. Create a simple bottomsheet from https://gorhom.github.io/react-native-bottom-sheet/usage
  2. Add a button
  3. Add the following style to the content container:
  contentContainer: {
    flex: 1,
    alignItems: 'center',
  }
  1. Continue refreshing the app until the text gets cropped off. E.g.

Screen Shot 2022-12-07 at 9 18 07 AM

Expected behavior:

Text does not get cut off:

Screen Shot 2022-12-07 at 9 21 38 AM

Reproducible sample code

  1. Open https://snack.expo.dev/@jeannei91/bottom-sheet-cropped-button
  2. Switch to the ios view
  3. Reload the app until the button is cropped

Note this was also reported in 2021 ( #645 ) but the issue was closed
And again in 2022 #1218 but again the issue was closed

@kav kav added the bug Something isn't working label Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant