2015-03-23 20:28:42 +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-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
#import "RCTShadowView.h"
|
|
|
|
|
|
|
|
extern NSString *const RCTIsHighlightedAttributeName;
|
|
|
|
extern NSString *const RCTReactTagAttributeName;
|
|
|
|
|
|
|
|
@interface RCTShadowText : RCTShadowView
|
|
|
|
|
|
|
|
@property (nonatomic, assign) NSWritingDirection writingDirection;
|
|
|
|
@property (nonatomic, strong) UIColor *textBackgroundColor;
|
|
|
|
@property (nonatomic, strong) UIColor *color;
|
|
|
|
@property (nonatomic, copy) NSString *fontFamily;
|
|
|
|
@property (nonatomic, assign) CGFloat fontSize;
|
|
|
|
@property (nonatomic, copy) NSString *fontWeight;
|
2015-03-25 23:22:59 +00:00
|
|
|
@property (nonatomic, copy) NSString *fontStyle;
|
2015-02-20 04:10:52 +00:00
|
|
|
@property (nonatomic, assign) BOOL isHighlighted;
|
|
|
|
@property (nonatomic, assign) CGFloat lineHeight;
|
2015-04-07 09:19:49 +00:00
|
|
|
@property (nonatomic, assign) NSUInteger maximumNumberOfLines;
|
2015-02-20 04:10:52 +00:00
|
|
|
@property (nonatomic, assign) CGSize shadowOffset;
|
|
|
|
@property (nonatomic, assign) NSTextAlignment textAlign;
|
2015-03-26 04:29:28 +00:00
|
|
|
|
|
|
|
// Not exposed to JS
|
|
|
|
@property (nonatomic, strong) UIFont *font;
|
2015-02-20 04:10:52 +00:00
|
|
|
@property (nonatomic, assign) NSLineBreakMode truncationMode;
|
|
|
|
|
2015-04-07 09:19:49 +00:00
|
|
|
@property (nonatomic, copy, readonly) NSAttributedString *attributedString;
|
|
|
|
@property (nonatomic, strong, readonly) NSLayoutManager *layoutManager;
|
|
|
|
@property (nonatomic, strong, readonly) NSTextContainer *textContainer;
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
@end
|