The best way to control Claude Code, Codex and more from any computer or phone
| 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 | }); |