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

Support PlatformColor in borderColor on Android #33544

Closed

Conversation

danilobuerger
Copy link
Contributor

@danilobuerger danilobuerger commented Apr 1, 2022

Summary

PlatformColor should work on all *color style attributes on all platform.

Partially fixes #32942

Changelog

[Android] [Fixed] - Support PlatformColor in borderColor

Test Plan

Open rn tester (USE_FABRIC=false) platform color api examples. Without the changes to ViewProps.java, it will error out.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Apr 1, 2022
@react-native-bot react-native-bot added Bug Platform: Android Android applications. labels Apr 1, 2022
@analysis-bot
Copy link

analysis-bot commented Apr 1, 2022

Platform Engine Arch Size (bytes) Diff
ios - universal n/a --

Base commit: 16397e0
Branch: main

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 7,809,618 -113
android hermes armeabi-v7a 7,201,301 -109
android hermes x86 8,118,365 -108
android hermes x86_64 8,098,545 -105
android jsc arm64-v8a 9,643,625 +49
android jsc armeabi-v7a 8,417,869 +40
android jsc x86 9,592,808 +39
android jsc x86_64 10,189,991 +43

Base commit: 16397e0
Branch: main

@facebook-github-bot
Copy link
Contributor

@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@danilobuerger
Copy link
Contributor Author

Hi @NickGerleman, thanks for importing the PR. Is there anything I can do about the Internal Linter warning?

@danilobuerger danilobuerger deleted the borderplatformcolor branch September 12, 2022 22:14
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @danilobuerger in 2d5db28.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 12, 2022
dmytrorykun pushed a commit that referenced this pull request Sep 14, 2022
Summary:
PlatformColor should work on all *color style attributes on all platform.

Partially fixes #32942

## Changelog

[Android] [Fixed] - Support PlatformColor in borderColor

Pull Request resolved: #33544

Test Plan: Open rn tester (USE_FABRIC=false) platform color api examples. Without the changes to ViewProps.java, it will error out.

Reviewed By: lunaleaps

Differential Revision: D39413519

Pulled By: NickGerleman

fbshipit-source-id: 58962ba2956aa3df45144108eec194aedf23886b
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
Summary:
PlatformColor should work on all *color style attributes on all platform.

Partially fixes facebook#32942

## Changelog

[Android] [Fixed] - Support PlatformColor in borderColor

Pull Request resolved: facebook#33544

Test Plan: Open rn tester (USE_FABRIC=false) platform color api examples. Without the changes to ViewProps.java, it will error out.

Reviewed By: lunaleaps

Differential Revision: D39413519

Pulled By: NickGerleman

fbshipit-source-id: 58962ba2956aa3df45144108eec194aedf23886b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Platform: Android Android applications. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

borderColor, overlayColor don't work with platformColor on android.
4 participants