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: fix inconsistent border width and radius on Android (#1181) #1182

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

perqin
Copy link
Contributor

@perqin perqin commented Oct 24, 2022

Summary

The dimension values coming from the JS side should be regarded as DIP values and be properly converted. This PR handles the borderWidth and borderRadius values with the PixelUtil.toPixelFromDIP util function provided by React Native. See the similar usage in RN's codebase.

Motivation

#1181

Testing

  • I tested this manually
  • I added automated tests

Before:

CardField CardForm
Screenshot_20221024_112115 Screenshot_20221024_112417

After:

CardField CardForm
Screenshot_20221024_112601 Screenshot_20221024_112618

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

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.

2 participants