Skip to content

Commit

Permalink
Fix chrome debugger crash caused by incorrect viewTag
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiPl01 committed Aug 21, 2024
1 parent 00f074f commit 9b7e52e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ export function createAnimatedComponent(
? (this._component as AnimatedComponentRef).getAnimatableRef?.()
: this;

if (IS_WEB) {
if (shouldBeUseWeb()) {
// At this point I assume that `_setComponentRef` was already called and `_component` is set.
// `this._component` on web represents HTMLElement of our component, that's why we use casting
viewTag = this._component as HTMLElement;
Expand Down

0 comments on commit 9b7e52e

Please sign in to comment.