Prefix iOS symbols with RNSVG

fixes https://github.com/react-native-community/react-native-svg/issues/603
This commit is contained in:
Ben Roth
2018-02-14 11:53:27 -08:00
parent 354f8c2719
commit b217dcaff8
43 changed files with 632 additions and 784 deletions
+7 -6
View File
@@ -10,12 +10,13 @@
#import "RNSVGTextPath.h"
#import <React/RCTFont.h>
#import <CoreText/CoreText.h>
#import "GlyphContext.h"
#import "RNSVGGlyphContext.h"
#import "RNSVGTextProperties.h"
@implementation RNSVGText
{
RNSVGText *_textRoot;
GlyphContext *_glyphContext;
RNSVGGlyphContext *_glyphContext;
}
- (void)renderLayerTo:(CGContextRef)context
@@ -36,8 +37,8 @@
- (void)setupGlyphContext:(CGContextRef)context
{
_glyphContext = [[GlyphContext alloc] initWithScale:1 width:[self getContextWidth]
height:[self getContextHeight]];
_glyphContext = [[RNSVGGlyphContext alloc] initWithScale:1 width:[self getContextWidth]
height:[self getContextHeight]];
}
// release the cached CGPathRef for RNSVGTSpan
@@ -109,7 +110,7 @@
parent = [parent superview];
}
if (self.alignmentBaseline == nil) {
self.alignmentBaseline = AlignmentBaselineStrings[0];
self.alignmentBaseline = RNSVGAlignmentBaselineStrings[0];
}
return self.alignmentBaseline;
}
@@ -139,7 +140,7 @@
return self.baselineShift;
}
- (GlyphContext *)getGlyphContext
- (RNSVGGlyphContext *)getGlyphContext
{
return _glyphContext;
}