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; } 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; fontWeight?: WithDefault; fontFamily?: string; letterSpacing?: Float; lineHeight?: Float; textDecorationLine?: WithDefault; textDecorationStyle?: WithDefault; textDecorationColor?: ColorValue; textAlign?: WithDefault; shadowRadius?: WithDefault; onPress?: BubblingEventHandler; onLongPress?: BubblingEventHandler; } export default codegenNativeComponent("T3MarkdownTextRun", { excludedPlatforms: ["android"], });