57 lines · 1.6 KB · TypeScript
RawDownload
import type { ColorValue, ViewProps } from "react-native";import type {  BubblingEventHandler,  Float,  Int32,  WithDefault,} from "react-native/Libraries/Types/CodegenTypes";import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent"; interface TargetedEvent {  target: Int32;} interface ContextMenuActionEvent extends TargetedEvent {  actionIdentifier: string;} type TextDecorationLine = "none" | "underline" | "line-through"; type TextDecorationStyle = "solid" | "double" | "dotted" | "dashed"; export type NativeFontWeight =  | "normal"  | "bold"  | "ultraLight"  | "light"  | "medium"  | "semibold"  | "heavy"; type FontStyle = "normal" | "italic"; type TextAlign = "auto" | "left" | "right" | "center" | "justify"; interface NativeProps extends ViewProps {  text: string;  color?: ColorValue;  fontSize?: Float;  fontStyle?: WithDefault<FontStyle, "normal">;  fontWeight?: WithDefault<NativeFontWeight, "normal">;  fontFamily?: string;  letterSpacing?: Float;  lineHeight?: Float;  textDecorationLine?: WithDefault<TextDecorationLine, "none">;  textDecorationStyle?: WithDefault<TextDecorationStyle, "solid">;  textDecorationColor?: ColorValue;  textAlign?: WithDefault<TextAlign, "auto">;  shadowRadius?: WithDefault<Float, 0>;  contextMenuConfig?: string;  onPress?: BubblingEventHandler<TargetedEvent>;  onLongPress?: BubblingEventHandler<TargetedEvent>;  onContextMenuAction?: BubblingEventHandler<ContextMenuActionEvent>;} export default codegenNativeComponent<NativeProps>("T3MarkdownTextRun", {  excludedPlatforms: ["android"],});