@bsky.app/react-native-uitextview 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bsky.app/react-native-uitextview",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "UITextView for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -1,29 +0,0 @@
1
- import { type CodegenTypes, type ColorValue, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- type TextDecorationLine = 'none' | 'underline' | 'line-through';
6
- type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
7
- export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
8
- type FontStyle = 'normal' | 'italic';
9
- type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
10
- interface NativeProps extends ViewProps {
11
- text: string;
12
- color?: ColorValue;
13
- fontSize?: CodegenTypes.Float;
14
- fontStyle?: CodegenTypes.WithDefault<FontStyle, 'normal'>;
15
- fontWeight?: CodegenTypes.WithDefault<NativeFontWeight, 'normal'>;
16
- fontFamily?: string;
17
- letterSpacing?: CodegenTypes.Float;
18
- lineHeight?: CodegenTypes.Float;
19
- textDecorationLine?: CodegenTypes.WithDefault<TextDecorationLine, 'none'>;
20
- textDecorationStyle?: CodegenTypes.WithDefault<TextDecorationStyle, 'solid'>;
21
- textDecorationColor?: ColorValue;
22
- textAlign?: CodegenTypes.WithDefault<TextAlign, 'auto'>;
23
- shadowRadius?: CodegenTypes.WithDefault<CodegenTypes.Float, 0>;
24
- onPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
25
- onLongPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
26
- }
27
- declare const _default: import("react-native").HostComponent<NativeProps>;
28
- export default _default;
29
- //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,KAAK,kBAAkB,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAA;AAE/D,KAAK,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnE,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,CAAA;AAEX,KAAK,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEpC,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEjE,UAAU,WAAY,SAAQ,SAAS;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC7B,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IACzD,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC/B,kBAAkB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IACzE,mBAAmB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC5E,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IACvD,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC9D,OAAO,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAC/D;;AAED,wBAEE"}
@@ -1,43 +0,0 @@
1
- import { type CodegenTypes, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- interface TextLayoutEvent extends TargetedEvent {
6
- lines: string[];
7
- }
8
- /**
9
- * Event fired when text selection changes in the UITextView.
10
- * @property target - The view tag identifier
11
- * @property start - The start index of the selected range (0-based)
12
- * @property end - The end index of the selected range (0-based, exclusive)
13
- */
14
- interface SelectionChangeEvent extends TargetedEvent {
15
- start: CodegenTypes.Int32;
16
- end: CodegenTypes.Int32;
17
- }
18
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip';
19
- interface NativeProps extends ViewProps {
20
- numberOfLines?: CodegenTypes.Int32;
21
- allowFontScaling?: CodegenTypes.WithDefault<boolean, true>;
22
- ellipsizeMode?: CodegenTypes.WithDefault<EllipsizeMode, 'tail'>;
23
- selectable?: boolean;
24
- onTextLayout?: CodegenTypes.BubblingEventHandler<TextLayoutEvent>;
25
- /**
26
- * Callback fired when the text selection changes.
27
- *
28
- * @example
29
- * ```tsx
30
- * <UITextView
31
- * onSelectionChange={(event) => {
32
- * console.log('Selection:', event.nativeEvent.start, event.nativeEvent.end);
33
- * }}
34
- * >
35
- * Selectable text
36
- * </UITextView>
37
- * ```
38
- */
39
- onSelectionChange?: CodegenTypes.BubblingEventHandler<SelectionChangeEvent>;
40
- }
41
- declare const _default: import("react-native").HostComponent<NativeProps>;
42
- export default _default;
43
- //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED;;;;;GAKG;AACH,UAAU,oBAAqB,SAAQ,aAAa;IAClD,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,GAAG,EAAE,YAAY,CAAC,KAAK,CAAA;CACxB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAExD,UAAU,WAAY,SAAQ,SAAS;IACrC,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC1D,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAA;IACjE;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAA;CAC5E;;AAED,wBAEE"}
@@ -1,29 +0,0 @@
1
- import { type CodegenTypes, type ColorValue, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- type TextDecorationLine = 'none' | 'underline' | 'line-through';
6
- type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
7
- export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
8
- type FontStyle = 'normal' | 'italic';
9
- type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
10
- interface NativeProps extends ViewProps {
11
- text: string;
12
- color?: ColorValue;
13
- fontSize?: CodegenTypes.Float;
14
- fontStyle?: CodegenTypes.WithDefault<FontStyle, 'normal'>;
15
- fontWeight?: CodegenTypes.WithDefault<NativeFontWeight, 'normal'>;
16
- fontFamily?: string;
17
- letterSpacing?: CodegenTypes.Float;
18
- lineHeight?: CodegenTypes.Float;
19
- textDecorationLine?: CodegenTypes.WithDefault<TextDecorationLine, 'none'>;
20
- textDecorationStyle?: CodegenTypes.WithDefault<TextDecorationStyle, 'solid'>;
21
- textDecorationColor?: ColorValue;
22
- textAlign?: CodegenTypes.WithDefault<TextAlign, 'auto'>;
23
- shadowRadius?: CodegenTypes.WithDefault<CodegenTypes.Float, 0>;
24
- onPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
25
- onLongPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
26
- }
27
- declare const _default: import("react-native").HostComponent<NativeProps>;
28
- export default _default;
29
- //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,KAAK,kBAAkB,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAA;AAE/D,KAAK,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnE,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,CAAA;AAEX,KAAK,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEpC,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEjE,UAAU,WAAY,SAAQ,SAAS;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC7B,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IACzD,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC/B,kBAAkB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IACzE,mBAAmB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC5E,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IACvD,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC9D,OAAO,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAC/D;;AAED,wBAEE"}
@@ -1,43 +0,0 @@
1
- import { type CodegenTypes, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- interface TextLayoutEvent extends TargetedEvent {
6
- lines: string[];
7
- }
8
- /**
9
- * Event fired when text selection changes in the UITextView.
10
- * @property target - The view tag identifier
11
- * @property start - The start index of the selected range (0-based)
12
- * @property end - The end index of the selected range (0-based, exclusive)
13
- */
14
- interface SelectionChangeEvent extends TargetedEvent {
15
- start: CodegenTypes.Int32;
16
- end: CodegenTypes.Int32;
17
- }
18
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip';
19
- interface NativeProps extends ViewProps {
20
- numberOfLines?: CodegenTypes.Int32;
21
- allowFontScaling?: CodegenTypes.WithDefault<boolean, true>;
22
- ellipsizeMode?: CodegenTypes.WithDefault<EllipsizeMode, 'tail'>;
23
- selectable?: boolean;
24
- onTextLayout?: CodegenTypes.BubblingEventHandler<TextLayoutEvent>;
25
- /**
26
- * Callback fired when the text selection changes.
27
- *
28
- * @example
29
- * ```tsx
30
- * <UITextView
31
- * onSelectionChange={(event) => {
32
- * console.log('Selection:', event.nativeEvent.start, event.nativeEvent.end);
33
- * }}
34
- * >
35
- * Selectable text
36
- * </UITextView>
37
- * ```
38
- */
39
- onSelectionChange?: CodegenTypes.BubblingEventHandler<SelectionChangeEvent>;
40
- }
41
- declare const _default: import("react-native").HostComponent<NativeProps>;
42
- export default _default;
43
- //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED;;;;;GAKG;AACH,UAAU,oBAAqB,SAAQ,aAAa;IAClD,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,GAAG,EAAE,YAAY,CAAC,KAAK,CAAA;CACxB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAExD,UAAU,WAAY,SAAQ,SAAS;IACrC,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC1D,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAA;IACjE;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAA;CAC5E;;AAED,wBAEE"}
@@ -1,29 +0,0 @@
1
- import { type CodegenTypes, type ColorValue, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- type TextDecorationLine = 'none' | 'underline' | 'line-through';
6
- type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
7
- export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
8
- type FontStyle = 'normal' | 'italic';
9
- type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
10
- interface NativeProps extends ViewProps {
11
- text: string;
12
- color?: ColorValue;
13
- fontSize?: CodegenTypes.Float;
14
- fontStyle?: CodegenTypes.WithDefault<FontStyle, 'normal'>;
15
- fontWeight?: CodegenTypes.WithDefault<NativeFontWeight, 'normal'>;
16
- fontFamily?: string;
17
- letterSpacing?: CodegenTypes.Float;
18
- lineHeight?: CodegenTypes.Float;
19
- textDecorationLine?: CodegenTypes.WithDefault<TextDecorationLine, 'none'>;
20
- textDecorationStyle?: CodegenTypes.WithDefault<TextDecorationStyle, 'solid'>;
21
- textDecorationColor?: ColorValue;
22
- textAlign?: CodegenTypes.WithDefault<TextAlign, 'auto'>;
23
- shadowRadius?: CodegenTypes.WithDefault<CodegenTypes.Float, 0>;
24
- onPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
25
- onLongPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
26
- }
27
- declare const _default: import("react-native").HostComponent<NativeProps>;
28
- export default _default;
29
- //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,KAAK,kBAAkB,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAA;AAE/D,KAAK,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnE,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,CAAA;AAEX,KAAK,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEpC,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEjE,UAAU,WAAY,SAAQ,SAAS;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC7B,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IACzD,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC/B,kBAAkB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IACzE,mBAAmB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC5E,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IACvD,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC9D,OAAO,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAC/D;;AAED,wBAEE"}
@@ -1,43 +0,0 @@
1
- import { type CodegenTypes, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- interface TextLayoutEvent extends TargetedEvent {
6
- lines: string[];
7
- }
8
- /**
9
- * Event fired when text selection changes in the UITextView.
10
- * @property target - The view tag identifier
11
- * @property start - The start index of the selected range (0-based)
12
- * @property end - The end index of the selected range (0-based, exclusive)
13
- */
14
- interface SelectionChangeEvent extends TargetedEvent {
15
- start: CodegenTypes.Int32;
16
- end: CodegenTypes.Int32;
17
- }
18
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip';
19
- interface NativeProps extends ViewProps {
20
- numberOfLines?: CodegenTypes.Int32;
21
- allowFontScaling?: CodegenTypes.WithDefault<boolean, true>;
22
- ellipsizeMode?: CodegenTypes.WithDefault<EllipsizeMode, 'tail'>;
23
- selectable?: boolean;
24
- onTextLayout?: CodegenTypes.BubblingEventHandler<TextLayoutEvent>;
25
- /**
26
- * Callback fired when the text selection changes.
27
- *
28
- * @example
29
- * ```tsx
30
- * <UITextView
31
- * onSelectionChange={(event) => {
32
- * console.log('Selection:', event.nativeEvent.start, event.nativeEvent.end);
33
- * }}
34
- * >
35
- * Selectable text
36
- * </UITextView>
37
- * ```
38
- */
39
- onSelectionChange?: CodegenTypes.BubblingEventHandler<SelectionChangeEvent>;
40
- }
41
- declare const _default: import("react-native").HostComponent<NativeProps>;
42
- export default _default;
43
- //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED;;;;;GAKG;AACH,UAAU,oBAAqB,SAAQ,aAAa;IAClD,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,GAAG,EAAE,YAAY,CAAC,KAAK,CAAA;CACxB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAExD,UAAU,WAAY,SAAQ,SAAS;IACrC,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC1D,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAA;IACjE;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAA;CAC5E;;AAED,wBAEE"}
@@ -1,29 +0,0 @@
1
- import { type CodegenTypes, type ColorValue, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- type TextDecorationLine = 'none' | 'underline' | 'line-through';
6
- type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
7
- export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
8
- type FontStyle = 'normal' | 'italic';
9
- type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
10
- interface NativeProps extends ViewProps {
11
- text: string;
12
- color?: ColorValue;
13
- fontSize?: CodegenTypes.Float;
14
- fontStyle?: CodegenTypes.WithDefault<FontStyle, 'normal'>;
15
- fontWeight?: CodegenTypes.WithDefault<NativeFontWeight, 'normal'>;
16
- fontFamily?: string;
17
- letterSpacing?: CodegenTypes.Float;
18
- lineHeight?: CodegenTypes.Float;
19
- textDecorationLine?: CodegenTypes.WithDefault<TextDecorationLine, 'none'>;
20
- textDecorationStyle?: CodegenTypes.WithDefault<TextDecorationStyle, 'solid'>;
21
- textDecorationColor?: ColorValue;
22
- textAlign?: CodegenTypes.WithDefault<TextAlign, 'auto'>;
23
- shadowRadius?: CodegenTypes.WithDefault<CodegenTypes.Float, 0>;
24
- onPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
25
- onLongPress?: CodegenTypes.BubblingEventHandler<TargetedEvent>;
26
- }
27
- declare const _default: import("react-native").HostComponent<NativeProps>;
28
- export default _default;
29
- //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,KAAK,kBAAkB,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAA;AAE/D,KAAK,mBAAmB,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEnE,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,CAAA;AAEX,KAAK,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEpC,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAA;AAEjE,UAAU,WAAY,SAAQ,SAAS;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,QAAQ,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC7B,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IACzD,UAAU,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,UAAU,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAC/B,kBAAkB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IACzE,mBAAmB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC5E,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IACvD,YAAY,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IAC9D,OAAO,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAC/D;;AAED,wBAEE"}
@@ -1,43 +0,0 @@
1
- import { type CodegenTypes, type ViewProps } from 'react-native';
2
- interface TargetedEvent {
3
- target: CodegenTypes.Int32;
4
- }
5
- interface TextLayoutEvent extends TargetedEvent {
6
- lines: string[];
7
- }
8
- /**
9
- * Event fired when text selection changes in the UITextView.
10
- * @property target - The view tag identifier
11
- * @property start - The start index of the selected range (0-based)
12
- * @property end - The end index of the selected range (0-based, exclusive)
13
- */
14
- interface SelectionChangeEvent extends TargetedEvent {
15
- start: CodegenTypes.Int32;
16
- end: CodegenTypes.Int32;
17
- }
18
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip';
19
- interface NativeProps extends ViewProps {
20
- numberOfLines?: CodegenTypes.Int32;
21
- allowFontScaling?: CodegenTypes.WithDefault<boolean, true>;
22
- ellipsizeMode?: CodegenTypes.WithDefault<EllipsizeMode, 'tail'>;
23
- selectable?: boolean;
24
- onTextLayout?: CodegenTypes.BubblingEventHandler<TextLayoutEvent>;
25
- /**
26
- * Callback fired when the text selection changes.
27
- *
28
- * @example
29
- * ```tsx
30
- * <UITextView
31
- * onSelectionChange={(event) => {
32
- * console.log('Selection:', event.nativeEvent.start, event.nativeEvent.end);
33
- * }}
34
- * >
35
- * Selectable text
36
- * </UITextView>
37
- * ```
38
- */
39
- onSelectionChange?: CodegenTypes.BubblingEventHandler<SelectionChangeEvent>;
40
- }
41
- declare const _default: import("react-native").HostComponent<NativeProps>;
42
- export default _default;
43
- //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,SAAS,EAEf,MAAM,cAAc,CAAA;AAErB,UAAU,aAAa;IACrB,MAAM,EAAE,YAAY,CAAC,KAAK,CAAA;CAC3B;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAED;;;;;GAKG;AACH,UAAU,oBAAqB,SAAQ,aAAa;IAClD,KAAK,EAAE,YAAY,CAAC,KAAK,CAAA;IACzB,GAAG,EAAE,YAAY,CAAC,KAAK,CAAA;CACxB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAExD,UAAU,WAAY,SAAQ,SAAS;IACrC,aAAa,CAAC,EAAE,YAAY,CAAC,KAAK,CAAA;IAClC,gBAAgB,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IAC1D,aAAa,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAC/D,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,eAAe,CAAC,CAAA;IACjE;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,EAAE,YAAY,CAAC,oBAAoB,CAAC,oBAAoB,CAAC,CAAA;CAC5E;;AAED,wBAEE"}