@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 25 lines 776 Bytes
Raw
1 import { codegenNativeComponent, type CodegenTypes } from "react-native";
2 import type { ViewProps } from "react-native";
3
4 interface TargetedEvent {
5 target: CodegenTypes.Int32;
6 }
7
8 interface SelectionChangeEvent extends TargetedEvent {
9 start: CodegenTypes.Int32;
10 end: CodegenTypes.Int32;
11 }
12
13 type EllipsizeMode = "head" | "middle" | "tail" | "clip";
14
15 interface NativeProps extends ViewProps {
16 numberOfLines?: CodegenTypes.Int32;
17 allowFontScaling?: CodegenTypes.WithDefault<boolean, true>;
18 ellipsizeMode?: CodegenTypes.WithDefault<EllipsizeMode, "tail">;
19 selectable?: boolean;
20 onSelectionChange?: CodegenTypes.BubblingEventHandler<SelectionChangeEvent>;
21 }
22
23 export default codegenNativeComponent<NativeProps>("T3SourceText", {
24 excludedPlatforms: ["android"],
25 });