UNPKG

1.3 kBTypeScriptView Raw
1import { CSSShadow } 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 _setNativeText(reset?: boolean): void;
17 createFormattedTextNative(value: FormattedString): NSMutableAttributedString;
18 getFormattedStringDetails(formattedString: FormattedString): {
19 spans: any[];
20 };
21 createMutableStringDetails(span: Span, text: string, index?: number): any;
22 createMutableStringForSpan(span: Span, text: string): NSMutableAttributedString;
23 getBaselineOffset(font: UIFont, align?: CoreTypes.VerticalAlignmentTextType): number;
24 _setShadow(value: CSSShadow): void;
25}
26export declare function getTransformedText(text: string, textTransform: CoreTypes.TextTransformType): string;