34 lines
1.2 KiB
Objective-C
34 lines
1.2 KiB
Objective-C
/**
|
|
* 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.
|
|
*/
|
|
|
|
#import "RCTShadowView.h"
|
|
|
|
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;
|
|
@property (nonatomic, copy) NSString *fontStyle;
|
|
@property (nonatomic, assign) BOOL isHighlighted;
|
|
@property (nonatomic, assign) CGFloat letterSpacing;
|
|
@property (nonatomic, assign) CGFloat lineHeight;
|
|
@property (nonatomic, assign) NSUInteger numberOfLines;
|
|
@property (nonatomic, assign) CGSize shadowOffset;
|
|
@property (nonatomic, assign) NSTextAlignment textAlign;
|
|
@property (nonatomic, strong) UIColor *textBackgroundColor;
|
|
@property (nonatomic, assign) NSWritingDirection writingDirection;
|
|
|
|
- (void)recomputeText;
|
|
|
|
@end
|