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 inline styles for Animated Components #4671

Merged
merged 3 commits into from
Jul 6, 2023
Merged

Conversation

tjzel
Copy link
Contributor

@tjzel tjzel commented Jul 4, 2023

Summary

Fixes #4584

Currently we incorrectly provide an error if a user tries to use sharedValue or derivedValue as a style property. This PR fixes it.

Test plan

Added relevant tests.

@tjzel tjzel requested a review from Latropos July 4, 2023 11:32
Copy link
Member

@tomekzaw tomekzaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me ✅

@tjzel tjzel added this pull request to the merge queue Jul 6, 2023
Merged via the queue into main with commit 1d60656 Jul 6, 2023
1 check passed
@tjzel tjzel deleted the @tjzel/types/inline-styles branch July 6, 2023 08:08
Latropos pushed a commit that referenced this pull request Jul 13, 2023
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Fixes #4584 

Currently we incorrectly provide an error if a user tries to use
`sharedValue` or `derivedValue` as a style property. This PR fixes it.

## Test plan

Added relevant tests.
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.

TypeScript Error when using useDerivedValue and interpolateColor for animated backgroundColor
3 participants