Open History to see the last commit
1import { codegenNativeComponent, type CodegenTypes } from "react-native";
2import type { ViewProps } from "react-native";
3
4interface TargetedEvent {
5 target: CodegenTypes.Int32;
6}
7
8interface SelectionChangeEvent extends TargetedEvent {
9 start: CodegenTypes.Int32;
10 end: CodegenTypes.Int32;
11}
12
13type EllipsizeMode = "head" | "middle" | "tail" | "clip";
14
15interface 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
23export default codegenNativeComponent<NativeProps>("T3SourceText", {
24 excludedPlatforms: ["android"],
25});