[iOS] Fix handling of releaseCachedPath in Text

This commit is contained in:
Mikael Sand
2018-10-19 02:47:43 +03:00
parent a8fe15c506
commit 1047f739a4
2 changed files with 24 additions and 1 deletions
+5
View File
@@ -18,6 +18,11 @@
RCT_NOT_IMPLEMENTED(- (instancetype)init)
- (void)paint:(CGContextRef)context opacity:(CGFloat)opacity painter:(RNSVGPainter *)painter bounds:(CGRect)bounds
{
}
- (BOOL)applyFillColor:(CGContextRef)context opacity:(CGFloat)opacity
{
return NO;
+19 -1
View File
@@ -18,12 +18,30 @@
RNSVGGlyphContext *_glyphContext;
NSString *_alignmentBaseline;
NSString *_baselineShift;
BOOL _merging;
}
- (void)invalidate
{
if (_merging) {
return;
}
[super invalidate];
//[self releaseCachedPath];
[self releaseCachedPath];
}
- (void)mergeProperties:(__kindof RNSVGRenderable *)target
{
_merging = true;
[super mergeProperties:target];
_merging = false;
}
- (void)resetProperties
{
_merging = true;
[super resetProperties];
_merging = false;
}
- (void)setTextLength:(RNSVGLength *)textLength