mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 16:32:24 +00:00
[iOS] Fix handling of releaseCachedPath in Text
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user