1import { ClassAttributes, ComponentProps, ComponentType } from 'react'; 2import { AccessibilityRole, StyleProp, Text as NativeText, TextStyle as NativeTextStyle } from 'react-native'; 3import { WebViewStyle } from './View'; 4type NativeTextProps = ComponentProps<typeof NativeText> & ClassAttributes<typeof NativeText>; 5export interface WebTextStyle { 6 /** string is only available on web */ 7 fontSize?: NativeTextStyle['fontSize'] | string; 8 /** string is only available on web */ 9 lineHeight?: NativeTextStyle['lineHeight'] | string; 10 /** @platform web */ 11 fontFeatureSettings?: string; 12 /** @platform web */ 13 textIndent?: string; 14 /** @platform web */ 15 textOverflow?: string; 16 /** @platform web */ 17 textRendering?: string; 18 /** @platform web */ 19 textTransform?: string; 20 /** @platform web */ 21 unicodeBidi?: string; 22 /** @platform web */ 23 wordWrap?: string; 24} 25export type TextStyle = Omit<NativeTextStyle, 'position' | 'fontSize' | 'lineHeight'> & WebTextStyle & WebViewStyle; 26export type WebTextProps = { 27 style?: StyleProp<TextStyle>; 28 /** @platform web */ 29 tabIndex?: number; 30 /** @platform web */ 31 accessibilityLevel?: number; 32 accessibilityRole?: 'listitem' | 'heading' | AccessibilityRole; 33 /** @platform web */ 34 href?: string; 35 /** @deprecated use the prop `hrefAttrs={{ target: '...' }}` instead. */ 36 target?: string; 37 /** @platform web */ 38 hrefAttrs?: { 39 /** @platform web */ 40 target?: string; 41 /** @platform web */ 42 rel?: string; 43 /** @platform web */ 44 download?: boolean | string; 45 }; 46 /** @platform web */ 47 lang?: string; 48}; 49export type TextProps = Omit<NativeTextProps, 'style' | 'accessibilityRole'> & WebTextProps; 50declare const _default: ComponentType<TextProps>; 51export default _default; 52//# sourceMappingURL=Text.d.ts.map