2015-03-23 22:07:33 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-01-30 01:10:49 +00:00
|
|
|
|
|
|
|
#import "RCTShadowView.h"
|
2015-07-07 13:03:56 +00:00
|
|
|
#import "RCTTextDecorationLineType.h"
|
2015-01-30 01:10:49 +00:00
|
|
|
|
|
|
|
extern NSString *const RCTIsHighlightedAttributeName;
|
|
|
|
extern NSString *const RCTReactTagAttributeName;
|
|
|
|
|
|
|
|
@interface RCTShadowText : RCTShadowView
|
|
|
|
|
|
|
|
@property (nonatomic, strong) UIColor *color;
|
|
|
|
@property (nonatomic, copy) NSString *fontFamily;
|
|
|
|
@property (nonatomic, assign) CGFloat fontSize;
|
|
|
|
@property (nonatomic, copy) NSString *fontWeight;
|
2015-03-26 01:19:28 +00:00
|
|
|
@property (nonatomic, copy) NSString *fontStyle;
|
2015-01-30 01:10:49 +00:00
|
|
|
@property (nonatomic, assign) BOOL isHighlighted;
|
2015-05-12 07:25:08 +00:00
|
|
|
@property (nonatomic, assign) CGFloat letterSpacing;
|
2015-01-30 01:10:49 +00:00
|
|
|
@property (nonatomic, assign) CGFloat lineHeight;
|
2015-05-27 01:39:37 +00:00
|
|
|
@property (nonatomic, assign) NSUInteger numberOfLines;
|
2016-07-25 20:05:14 +00:00
|
|
|
@property (nonatomic, assign) NSLineBreakMode ellipsizeMode;
|
2015-01-30 01:10:49 +00:00
|
|
|
@property (nonatomic, assign) CGSize shadowOffset;
|
|
|
|
@property (nonatomic, assign) NSTextAlignment textAlign;
|
2015-05-27 01:39:37 +00:00
|
|
|
@property (nonatomic, assign) NSWritingDirection writingDirection;
|
2015-07-07 13:03:56 +00:00
|
|
|
@property (nonatomic, strong) UIColor *textDecorationColor;
|
|
|
|
@property (nonatomic, assign) NSUnderlineStyle textDecorationStyle;
|
|
|
|
@property (nonatomic, assign) RCTTextDecorationLineType textDecorationLine;
|
2015-07-31 14:37:12 +00:00
|
|
|
@property (nonatomic, assign) CGFloat fontSizeMultiplier;
|
|
|
|
@property (nonatomic, assign) BOOL allowFontScaling;
|
2015-11-04 16:52:46 +00:00
|
|
|
@property (nonatomic, assign) CGFloat opacity;
|
2016-01-01 17:32:59 +00:00
|
|
|
@property (nonatomic, assign) CGSize textShadowOffset;
|
|
|
|
@property (nonatomic, assign) CGFloat textShadowRadius;
|
|
|
|
@property (nonatomic, strong) UIColor *textShadowColor;
|
2015-03-26 13:32:01 +00:00
|
|
|
|
2015-05-29 17:27:14 +00:00
|
|
|
- (void)recomputeText;
|
2015-01-30 01:10:49 +00:00
|
|
|
|
|
|
|
@end
|