Skip to content

Commit

Permalink
Fix inline styles on web (#5164)
Browse files Browse the repository at this point in the history
<!-- 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 regression that happened in #5003.

## Test plan

Inline styles work now.
  • Loading branch information
tjzel authored Oct 2, 2023
1 parent b40463c commit 062f36a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createAnimatedComponent/InlinePropManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class InlinePropManager {

const maybeViewRef = IS_NATIVE
? undefined
: ({ items: new Set([this]) } as ViewRefSet<any>); // see makeViewsRefSet
: ({ items: new Set([animatedComponent]) } as ViewRefSet<any>); // see makeViewsRefSet

const updaterFunction = () => {
'worklet';
Expand Down

0 comments on commit 062f36a

Please sign in to comment.