Files
react-native-svg/ios/Text/RNSVGPropHelper.h
T
Mikael Sand 9fe9e2d5b3 [ios] Handle failed realloc gracefully. Change float/double to CGFloat.
Reduces potential for wrong type of float given to core graphics.
Reduces cpu & memory consumption on devices where CGFloat is float.
Remove redundant parameters.
2018-10-20 20:46:04 +03:00

23 lines
583 B
Objective-C

#import <Foundation/Foundation.h>
#import <QuartzCore/QuartzCore.h>
#import "RNSVGLength.h"
#ifndef RNSVGPropHelper_h
#define RNSVGPropHelper_h
@interface RNSVGPropHelper : NSObject
+ (CGFloat) fromRelativeWithNSString:(NSString *)length
relative:(CGFloat)relative
fontSize:(CGFloat)fontSize;
+ (CGFloat) fromRelative:(RNSVGLength*)length
relative:(CGFloat)relative
fontSize:(CGFloat)fontSize;
+ (CGFloat)fromRelative:(RNSVGLength*)length
relative:(CGFloat)relative;
@end
#endif