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

fix: align units of sheet corner radius in different callsites #2378

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

kkafar
Copy link
Member

@kkafar kkafar commented Oct 3, 2024

Description

Before this PR, when updating corner size after initial render different unit (pixel) has been used opposed to
dp used during initial render. This PR align this behaviour so that dp is always used.

Changes

  • Calculate appropriate value in Screen.onSheetDetentChange function

Test code and steps to reproduce

Test1649

Checklist

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

@kkafar kkafar force-pushed the @kkafar/align-corner-radius-values branch from 093c896 to 3e16e65 Compare October 3, 2024 08:17
@kkafar kkafar requested review from alduzy and maciekstosio October 3, 2024 08:18
@kkafar
Copy link
Member Author

kkafar commented Oct 3, 2024

Approved here: #2377 (comment)

Could not reopen that PR, hece new one.

@kkafar kkafar merged commit 9075f42 into main Oct 3, 2024
4 checks passed
@kkafar kkafar deleted the @kkafar/align-corner-radius-values branch October 3, 2024 08:19
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
…are-mansion#2378)

## Description

Before this PR, when updating corner size after initial render different
unit (pixel) has been used opposed to
`dp` used during initial render. This PR align this behaviour so that
`dp` is always used.


## Changes

* Calculate appropriate value in `Screen.onSheetDetentChange` function

## Test code and steps to reproduce

`Test1649`

## Checklist

- [x] 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.

1 participant