Skip to content

Conversation

t0maboro
Copy link
Contributor

Description

While working on a different task, I noticed that on Android API level 28 or below, the FormSheet might not display correctly. The issue was caused by passing a negative corner radius value when it was undefined on the JS side, which ShapeAppearanceModel could not handle properly. This PR adds a fallback to 0 when the value is not provided.

Fixes https://github.com/software-mansion/react-native-screens-labs/issues/480

Changes

  • Added a fallback for sheetCornerRadius prop

Screenshots / GIFs

Before

Screenshot 2025-10-10 at 14 57 47

After

Screenshot 2025-10-10 at 14 58 10

Test code and steps to reproduce

You can open GlossyFormSheet from TestFormSheet on Android 28 or lower; I haven't defined sheetCornerRadius there.

Checklist

  • Included code example that can be used to test this change
  • Ensured that CI passes

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

Successfully merging this pull request may close these issues.

3 participants