UNPKG

1.35 kBTypeScriptView Raw
1import { ShadowCSSValues } from '../styling/css-shadow';
2import { TextBaseCommon } from './text-base-common';
3import { FormattedString } from './formatted-string';
4import { Span } from './span';
5import { CoreTypes } from '../../core-types';
6export * from './text-base-common';
7export declare class TextBase extends TextBaseCommon {
8 nativeViewProtected: UITextField | UITextView | UILabel | UIButton;
9 nativeTextViewProtected: UITextField | UITextView | UILabel | UIButton;
10 private _tappable;
11 private _tapGestureRecognizer;
12 _spanRanges: NSRange[];
13 initNativeView(): void;
14 _setTappableState(tappable: boolean): void;
15 _setColor(color: UIColor): void;
16 _animationWrap(fn: () => void): void;
17 _setNativeText(reset?: boolean): void;
18 createFormattedTextNative(value: FormattedString): NSMutableAttributedString;
19 getFormattedStringDetails(formattedString: FormattedString): {
20 spans: any[];
21 };
22 createMutableStringDetails(span: Span, text: string, index?: number): any;
23 createMutableStringForSpan(span: Span, text: string): NSMutableAttributedString;
24 getBaselineOffset(font: UIFont, align?: CoreTypes.VerticalAlignmentTextType): number;
25 _setShadow(value: ShadowCSSValues): void;
26}
27export declare function getTransformedText(text: string, textTransform: CoreTypes.TextTransformType): string;