Skip to content

Commit

Permalink
ignore reanimated ignored components
Browse files Browse the repository at this point in the history
  • Loading branch information
jwajgelt committed Feb 19, 2025
1 parent 430865e commit 56fbd7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vscode-extension/lib/instrumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ function mergeRects(lhs, rhs) {
}

const ANIMATED_COMPONENT_REGEX = /Animated\((.*)\)/;
const REANIMATED_COMPONENT_REGEX = /AnimatedComponent\((.*)\)/;
function stripAnimatedFromComponentName(name) {
const matches = ANIMATED_COMPONENT_REGEX.exec(name);
const matches = ANIMATED_COMPONENT_REGEX.exec(name) ?? REANIMATED_COMPONENT_REGEX.exec(name);
return matches ? matches[1] : null;
}

Expand Down

0 comments on commit 56fbd7e

Please sign in to comment.