Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions apple/RNSVGNode.mm
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ @implementation RNSVGNode {
- (instancetype)init
{
if (self = [super init]) {
self.opacity = 1;
#if !TARGET_OS_OSX // On macOS, views are transparent by default
self.opaque = false;
#endif
self.matrix = CGAffineTransformIdentity;
_matrix = CGAffineTransformIdentity;
_invmatrix = CGAffineTransformIdentity;
_opacity = 1;
_merging = false;
_dirty = false;
}
Expand Down Expand Up @@ -638,11 +639,9 @@ - (void)prepareForRecycle
{
[super prepareForRecycle];

self.opacity = 1;
#if !TARGET_OS_OSX // On macOS, views are transparent by default
self.opaque = false;
#endif
self.matrix = CGAffineTransformIdentity;
_merging = false;
_dirty = false;

Expand Down