Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.4 KB
Raw Blame
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<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>;
  onPress?: BubblingEventHandler<TargetedEvent>;
  onLongPress?: BubblingEventHandler<TargetedEvent>;
}

export default codegenNativeComponent<NativeProps>("T3MarkdownTextRun", {
  excludedPlatforms: ["android"],
});