Skip to content

Commit a428adb

Browse files
author
Barzilay, Oshri (ob143h)
committed
add textStyle destructuring support
1 parent 16899b8 commit a428adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/stylesheet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ const astHelpers = {
484484
&& node.expression.name
485485
&& node.parent
486486
&& node.parent.name
487-
&& node.parent.name.name === 'style'
487+
&& ['style', 'textStyle'].includes(node.parent.name.name)
488488
) {
489489
return node.expression.name;
490490
}

0 commit comments

Comments
 (0)