@dongsuo/react-native-uitextview 1.0.1 → 1.0.3

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.
Files changed (71) hide show
  1. package/README.md +1 -1
  2. package/{ios/generated → android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components}/RNUITextViewSpec/ComponentDescriptors.cpp +1 -1
  3. package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/ComponentDescriptors.h +1 -1
  4. package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/EventEmitters.cpp +1 -1
  5. package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/Props.cpp +3 -2
  6. package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/Props.h +23 -1
  7. package/{ios/generated → android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components}/RNUITextViewSpec/ShadowNodes.cpp +1 -1
  8. package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/ShadowNodes.h +3 -3
  9. package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/States.cpp +1 -1
  10. package/ios/RNUITextView.mm +47 -14
  11. package/ios/RNUITextViewChild.mm +5 -9
  12. package/ios/RNUITextViewChildShadowNode.h +3 -3
  13. package/ios/RNUITextViewShadowNode.cpp +21 -4
  14. package/ios/RNUITextViewShadowNode.h +5 -5
  15. package/{android/generated/jni → ios/generated/build/generated/ios}/react/renderer/components/RNUITextViewSpec/ComponentDescriptors.cpp +1 -1
  16. package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/ComponentDescriptors.h +1 -1
  17. package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/EventEmitters.cpp +1 -1
  18. package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/Props.cpp +3 -2
  19. package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/Props.h +23 -1
  20. package/{android/generated/jni → ios/generated/build/generated/ios}/react/renderer/components/RNUITextViewSpec/ShadowNodes.cpp +1 -1
  21. package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/ShadowNodes.h +3 -3
  22. package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/States.cpp +1 -1
  23. package/lib/commonjs/RNUITextViewChildNativeComponent.ts +4 -1
  24. package/lib/commonjs/RNUITextViewNativeComponent.ts +20 -20
  25. package/lib/module/RNUITextViewChildNativeComponent.ts +4 -1
  26. package/lib/module/RNUITextViewNativeComponent.ts +20 -20
  27. package/lib/typescript/commonjs/example/src/App.d.ts.map +1 -1
  28. package/lib/typescript/commonjs/lib/commonjs/RNUITextViewChildNativeComponent.d.ts +30 -0
  29. package/lib/typescript/commonjs/lib/commonjs/RNUITextViewChildNativeComponent.d.ts.map +1 -0
  30. package/lib/typescript/commonjs/lib/commonjs/RNUITextViewNativeComponent.d.ts +29 -0
  31. package/lib/typescript/commonjs/lib/commonjs/RNUITextViewNativeComponent.d.ts.map +1 -0
  32. package/lib/typescript/commonjs/lib/module/RNUITextViewChildNativeComponent.d.ts +30 -0
  33. package/lib/typescript/commonjs/lib/module/RNUITextViewChildNativeComponent.d.ts.map +1 -0
  34. package/lib/typescript/commonjs/lib/module/RNUITextViewNativeComponent.d.ts +29 -0
  35. package/lib/typescript/commonjs/lib/module/RNUITextViewNativeComponent.d.ts.map +1 -0
  36. package/lib/typescript/commonjs/src/RNUITextViewChildNativeComponent.d.ts +2 -0
  37. package/lib/typescript/commonjs/src/RNUITextViewChildNativeComponent.d.ts.map +1 -1
  38. package/lib/typescript/commonjs/src/RNUITextViewNativeComponent.d.ts +5 -5
  39. package/lib/typescript/commonjs/src/RNUITextViewNativeComponent.d.ts.map +1 -1
  40. package/lib/typescript/module/example/src/App.d.ts.map +1 -1
  41. package/lib/typescript/module/lib/commonjs/RNUITextViewChildNativeComponent.d.ts +30 -0
  42. package/lib/typescript/module/lib/commonjs/RNUITextViewChildNativeComponent.d.ts.map +1 -0
  43. package/lib/typescript/module/lib/commonjs/RNUITextViewNativeComponent.d.ts +29 -0
  44. package/lib/typescript/module/lib/commonjs/RNUITextViewNativeComponent.d.ts.map +1 -0
  45. package/lib/typescript/module/lib/module/RNUITextViewChildNativeComponent.d.ts +30 -0
  46. package/lib/typescript/module/lib/module/RNUITextViewChildNativeComponent.d.ts.map +1 -0
  47. package/lib/typescript/module/lib/module/RNUITextViewNativeComponent.d.ts +29 -0
  48. package/lib/typescript/module/lib/module/RNUITextViewNativeComponent.d.ts.map +1 -0
  49. package/lib/typescript/module/src/RNUITextViewChildNativeComponent.d.ts +2 -0
  50. package/lib/typescript/module/src/RNUITextViewChildNativeComponent.d.ts.map +1 -1
  51. package/lib/typescript/module/src/RNUITextViewNativeComponent.d.ts +5 -5
  52. package/lib/typescript/module/src/RNUITextViewNativeComponent.d.ts.map +1 -1
  53. package/package.json +3 -4
  54. package/react-native-uitextview.podspec +16 -3
  55. package/react-native.config.js +1 -1
  56. package/src/RNUITextViewChildNativeComponent.ts +4 -1
  57. package/src/RNUITextViewNativeComponent.ts +20 -20
  58. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/CMakeLists.txt +0 -0
  59. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/RNUITextViewSpec-generated.cpp +0 -0
  60. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/RNUITextViewSpec.h +0 -0
  61. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/EventEmitters.h +0 -0
  62. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/RNUITextViewSpecJSI-generated.cpp +0 -0
  63. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/RNUITextViewSpecJSI.h +0 -0
  64. /package/android/generated/{jni → android/app/build/generated/source/codegen/jni}/react/renderer/components/RNUITextViewSpec/States.h +0 -0
  65. /package/ios/generated/{RNUITextViewSpec → build/generated/ios/RNUITextViewSpec}/RNUITextViewSpec-generated.mm +0 -0
  66. /package/ios/generated/{RNUITextViewSpec → build/generated/ios/RNUITextViewSpec}/RNUITextViewSpec.h +0 -0
  67. /package/ios/generated/{RNUITextViewSpecJSI-generated.cpp → build/generated/ios/RNUITextViewSpecJSI-generated.cpp} +0 -0
  68. /package/ios/generated/{RNUITextViewSpecJSI.h → build/generated/ios/RNUITextViewSpecJSI.h} +0 -0
  69. /package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/EventEmitters.h +0 -0
  70. /package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/RCTComponentViewHelpers.h +0 -0
  71. /package/ios/generated/{RNUITextViewSpec → build/generated/ios/react/renderer/components/RNUITextViewSpec}/States.h +0 -0
@@ -1,4 +1,3 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
2
1
  import type {ColorValue, ViewProps} from 'react-native'
3
2
  import type {
4
3
  BubblingEventHandler,
@@ -6,6 +5,7 @@ import type {
6
5
  Int32,
7
6
  WithDefault,
8
7
  } from 'react-native/Libraries/Types/CodegenTypes'
8
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
9
9
 
10
10
  interface TargetedEvent {
11
11
  target: Int32
@@ -26,6 +26,8 @@ export type NativeFontWeight =
26
26
 
27
27
  type FontStyle = 'normal' | 'italic'
28
28
 
29
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify'
30
+
29
31
  interface NativeProps extends ViewProps {
30
32
  text: string
31
33
  color?: ColorValue
@@ -38,6 +40,7 @@ interface NativeProps extends ViewProps {
38
40
  textDecorationLine?: WithDefault<TextDecorationLine, 'none'>
39
41
  textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>
40
42
  textDecorationColor?: ColorValue
43
+ textAlign?: WithDefault<TextAlign, 'auto'>
41
44
  shadowRadius?: WithDefault<Float, 0>
42
45
  onPress?: BubblingEventHandler<TargetedEvent>
43
46
  onLongPress?: BubblingEventHandler<TargetedEvent>
@@ -1,47 +1,47 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
2
- import type {ViewProps} from 'react-native'
1
+ import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNativeComponent";
2
+ import type { ViewProps } from "react-native";
3
3
  import type {
4
4
  BubblingEventHandler,
5
5
  Int32,
6
6
  WithDefault,
7
7
  DirectEventHandler,
8
- } from 'react-native/Libraries/Types/CodegenTypes'
8
+ } from "react-native/Libraries/Types/CodegenTypes";
9
9
 
10
10
  interface TargetedEvent {
11
- target: Int32
11
+ target: Int32;
12
12
  }
13
13
 
14
14
  interface TextLayoutEvent extends TargetedEvent {
15
- lines: string[]
15
+ lines: string[];
16
16
  }
17
17
 
18
18
  // 自定义菜单项接口
19
19
  interface CustomMenuItem {
20
- title: string
21
- actionId: string
20
+ title: string;
21
+ actionId: string;
22
22
  }
23
23
 
24
24
  // 自定义菜单操作事件
25
25
  interface CustomMenuActionEvent extends TargetedEvent {
26
- actionId: string
27
- selectedText: string
26
+ actionId: string;
27
+ selectedText: string;
28
28
  }
29
29
 
30
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip'
30
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
31
31
 
32
32
  interface NativeProps extends ViewProps {
33
33
  // 现有属性
34
- numberOfLines?: Int32
35
- allowsFontScaling?: boolean
36
- ellipsizeMode?: WithDefault<EllipsizeMode, 'tail'>
37
- selectable?: boolean
38
- onTextLayout?: BubblingEventHandler<TextLayoutEvent>
34
+ numberOfLines?: Int32;
35
+ allowFontScaling?: WithDefault<boolean, true>;
36
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
37
+ selectable?: boolean;
38
+ onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
39
39
 
40
40
  // 新增自定义菜单属性
41
- customMenuItems?: ReadonlyArray<CustomMenuItem>
42
- onCustomMenuAction?: DirectEventHandler<CustomMenuActionEvent>
41
+ customMenuItems?: ReadonlyArray<CustomMenuItem>;
42
+ onCustomMenuAction?: DirectEventHandler<CustomMenuActionEvent>;
43
43
  }
44
44
 
45
- export default codegenNativeComponent<NativeProps>('RNUITextView', {
46
- excludedPlatforms: ['android'],
47
- })
45
+ export default codegenNativeComponent<NativeProps>("RNUITextView", {
46
+ excludedPlatforms: ["android"],
47
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,GAAG,4CA6jB1B"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAqnB1B"}
@@ -0,0 +1,30 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+ import type { BubblingEventHandler, Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ type TextDecorationLine = 'none' | 'underline' | 'line-through';
7
+ type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
8
+ export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
9
+ type FontStyle = 'normal' | 'italic';
10
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
11
+ interface NativeProps extends ViewProps {
12
+ text: string;
13
+ color?: ColorValue;
14
+ fontSize?: Float;
15
+ fontStyle?: WithDefault<FontStyle, 'normal'>;
16
+ fontWeight?: WithDefault<NativeFontWeight, 'normal'>;
17
+ fontFamily?: string;
18
+ letterSpacing?: Float;
19
+ lineHeight?: Float;
20
+ textDecorationLine?: WithDefault<TextDecorationLine, 'none'>;
21
+ textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>;
22
+ textDecorationColor?: ColorValue;
23
+ textAlign?: WithDefault<TextAlign, 'auto'>;
24
+ shadowRadius?: WithDefault<Float, 0>;
25
+ onPress?: BubblingEventHandler<TargetedEvent>;
26
+ onLongPress?: BubblingEventHandler<TargetedEvent>;
27
+ }
28
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
29
+ export default _default;
30
+ //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAA;AAGlD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAA;CACd;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,KAAK,CAAA;IAChB,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,KAAK,CAAA;IACrB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,kBAAkB,CAAC,EAAE,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IAC5D,mBAAmB,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC/D,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IAC1C,YAAY,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC7C,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAClD;;AAED,wBAEE"}
@@ -0,0 +1,29 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ interface TextLayoutEvent extends TargetedEvent {
7
+ lines: string[];
8
+ }
9
+ interface CustomMenuItem {
10
+ title: string;
11
+ actionId: string;
12
+ }
13
+ interface CustomMenuActionEvent extends TargetedEvent {
14
+ actionId: string;
15
+ selectedText: string;
16
+ }
17
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
18
+ interface NativeProps extends ViewProps {
19
+ numberOfLines?: Int32;
20
+ allowFontScaling?: WithDefault<boolean, true>;
21
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
22
+ selectable?: boolean;
23
+ onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
24
+ customMenuItems?: ReadonlyArray<CustomMenuItem>;
25
+ onCustomMenuAction?: DirectEventHandler<CustomMenuActionEvent>;
26
+ }
27
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
28
+ export default _default;
29
+ //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAC;CACf;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,UAAU,WAAY,SAAQ,SAAS;IAErC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAGrD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAChE;;AAED,wBAEG"}
@@ -0,0 +1,30 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+ import type { BubblingEventHandler, Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ type TextDecorationLine = 'none' | 'underline' | 'line-through';
7
+ type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
8
+ export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
9
+ type FontStyle = 'normal' | 'italic';
10
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
11
+ interface NativeProps extends ViewProps {
12
+ text: string;
13
+ color?: ColorValue;
14
+ fontSize?: Float;
15
+ fontStyle?: WithDefault<FontStyle, 'normal'>;
16
+ fontWeight?: WithDefault<NativeFontWeight, 'normal'>;
17
+ fontFamily?: string;
18
+ letterSpacing?: Float;
19
+ lineHeight?: Float;
20
+ textDecorationLine?: WithDefault<TextDecorationLine, 'none'>;
21
+ textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>;
22
+ textDecorationColor?: ColorValue;
23
+ textAlign?: WithDefault<TextAlign, 'auto'>;
24
+ shadowRadius?: WithDefault<Float, 0>;
25
+ onPress?: BubblingEventHandler<TargetedEvent>;
26
+ onLongPress?: BubblingEventHandler<TargetedEvent>;
27
+ }
28
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
29
+ export default _default;
30
+ //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OA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C,YAAY,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC7C,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAClD;;AAED,wBAEE"}
@@ -0,0 +1,29 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ interface TextLayoutEvent extends TargetedEvent {
7
+ lines: string[];
8
+ }
9
+ interface CustomMenuItem {
10
+ title: string;
11
+ actionId: string;
12
+ }
13
+ interface CustomMenuActionEvent extends TargetedEvent {
14
+ actionId: string;
15
+ selectedText: string;
16
+ }
17
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
18
+ interface NativeProps extends ViewProps {
19
+ numberOfLines?: Int32;
20
+ allowFontScaling?: WithDefault<boolean, true>;
21
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
22
+ selectable?: boolean;
23
+ onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
24
+ customMenuItems?: ReadonlyArray<CustomMenuItem>;
25
+ onCustomMenuAction?: DirectEventHandler<CustomMenuActionEvent>;
26
+ }
27
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
28
+ export default _default;
29
+ //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAC;CACf;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,UAAU,WAAY,SAAQ,SAAS;IAErC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAGrD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAChE;;AAED,wBAEG"}
@@ -7,6 +7,7 @@ type TextDecorationLine = 'none' | 'underline' | 'line-through';
7
7
  type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
8
8
  export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
9
9
  type FontStyle = 'normal' | 'italic';
10
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
10
11
  interface NativeProps extends ViewProps {
11
12
  text: string;
12
13
  color?: ColorValue;
@@ -19,6 +20,7 @@ interface NativeProps extends ViewProps {
19
20
  textDecorationLine?: WithDefault<TextDecorationLine, 'none'>;
20
21
  textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>;
21
22
  textDecorationColor?: ColorValue;
23
+ textAlign?: WithDefault<TextAlign, 'auto'>;
22
24
  shadowRadius?: WithDefault<Float, 0>;
23
25
  onPress?: BubblingEventHandler<TargetedEvent>;
24
26
  onLongPress?: BubblingEventHandler<TargetedEvent>;
@@ -1 +1 @@
1
- {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAA;AAElD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAA;CACd;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,UAAU,WAAY,SAAQ,SAAS;IACrC,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAA;IAChB,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,KAAK,CAAA;IACrB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,kBAAkB,CAAC,EAAE,WAAW,CAAC,kBAAkB,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Q,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,KAAK,CAAA;IACrB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,kBAAkB,CAAC,EAAE,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IAC5D,mBAAmB,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC/D,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IAC1C,YAAY,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC7C,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAClD;;AAED,wBAEE"}
@@ -1,5 +1,5 @@
1
- import type { ViewProps } from 'react-native';
2
- import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
3
  interface TargetedEvent {
4
4
  target: Int32;
5
5
  }
@@ -14,11 +14,11 @@ interface CustomMenuActionEvent extends TargetedEvent {
14
14
  actionId: string;
15
15
  selectedText: string;
16
16
  }
17
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip';
17
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
18
18
  interface NativeProps extends ViewProps {
19
19
  numberOfLines?: Int32;
20
- allowsFontScaling?: boolean;
21
- ellipsizeMode?: WithDefault<EllipsizeMode, 'tail'>;
20
+ allowFontScaling?: WithDefault<boolean, true>;
21
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
22
22
  selectable?: boolean;
23
23
  onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
24
24
  customMenuItems?: ReadonlyArray<CustomMenuItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAA;AAElD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAA;CACd;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAA;AAExD,UAAU,WAAY,SAAQ,SAAS;IAErC,aAAa,CAAC,EAAE,KAAK,CAAA;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAA;IAClD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAA;IAGpD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAA;IAC/C,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAA;CAC/D;;AAED,wBAEE"}
1
+ {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAC;CACf;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,UAAU,WAAY,SAAQ,SAAS;IAErC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAGrD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAChE;;AAED,wBAEG"}
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,GAAG,4CA6jB1B"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../../example/src/App.tsx"],"names":[],"mappings":"AAaA,MAAM,CAAC,OAAO,UAAU,GAAG,4CAqnB1B"}
@@ -0,0 +1,30 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+ import type { BubblingEventHandler, Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ type TextDecorationLine = 'none' | 'underline' | 'line-through';
7
+ type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
8
+ export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
9
+ type FontStyle = 'normal' | 'italic';
10
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
11
+ interface NativeProps extends ViewProps {
12
+ text: string;
13
+ color?: ColorValue;
14
+ fontSize?: Float;
15
+ fontStyle?: WithDefault<FontStyle, 'normal'>;
16
+ fontWeight?: WithDefault<NativeFontWeight, 'normal'>;
17
+ fontFamily?: string;
18
+ letterSpacing?: Float;
19
+ lineHeight?: Float;
20
+ textDecorationLine?: WithDefault<TextDecorationLine, 'none'>;
21
+ textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>;
22
+ textDecorationColor?: ColorValue;
23
+ textAlign?: WithDefault<TextAlign, 'auto'>;
24
+ shadowRadius?: WithDefault<Float, 0>;
25
+ onPress?: BubblingEventHandler<TargetedEvent>;
26
+ onLongPress?: BubblingEventHandler<TargetedEvent>;
27
+ }
28
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
29
+ export default _default;
30
+ //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,KA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AC,aAAa,CAAC,CAAA;IAC7C,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAClD;;AAED,wBAEE"}
@@ -0,0 +1,29 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ interface TextLayoutEvent extends TargetedEvent {
7
+ lines: string[];
8
+ }
9
+ interface CustomMenuItem {
10
+ title: string;
11
+ actionId: string;
12
+ }
13
+ interface CustomMenuActionEvent extends TargetedEvent {
14
+ actionId: string;
15
+ selectedText: string;
16
+ }
17
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
18
+ interface NativeProps extends ViewProps {
19
+ numberOfLines?: Int32;
20
+ allowFontScaling?: WithDefault<boolean, true>;
21
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
22
+ selectable?: boolean;
23
+ onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
24
+ customMenuItems?: ReadonlyArray<CustomMenuItem>;
25
+ onCustomMenuAction?: DirectEventHandler<CustomMenuActionEvent>;
26
+ }
27
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
28
+ export default _default;
29
+ //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../commonjs/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAC;CACf;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,UAAU,WAAY,SAAQ,SAAS;IAErC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAGrD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAChE;;AAED,wBAEG"}
@@ -0,0 +1,30 @@
1
+ import type { ColorValue, ViewProps } from 'react-native';
2
+ import type { BubblingEventHandler, Float, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ type TextDecorationLine = 'none' | 'underline' | 'line-through';
7
+ type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
8
+ export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
9
+ type FontStyle = 'normal' | 'italic';
10
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
11
+ interface NativeProps extends ViewProps {
12
+ text: string;
13
+ color?: ColorValue;
14
+ fontSize?: Float;
15
+ fontStyle?: WithDefault<FontStyle, 'normal'>;
16
+ fontWeight?: WithDefault<NativeFontWeight, 'normal'>;
17
+ fontFamily?: string;
18
+ letterSpacing?: Float;
19
+ lineHeight?: Float;
20
+ textDecorationLine?: WithDefault<TextDecorationLine, 'none'>;
21
+ textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>;
22
+ textDecorationColor?: ColorValue;
23
+ textAlign?: WithDefault<TextAlign, 'auto'>;
24
+ shadowRadius?: WithDefault<Float, 0>;
25
+ onPress?: BubblingEventHandler<TargetedEvent>;
26
+ onLongPress?: BubblingEventHandler<TargetedEvent>;
27
+ }
28
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
29
+ export default _default;
30
+ //# sourceMappingURL=RNUITextViewChildNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAA;AAGlD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAA;CACd;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,KAAK,CAAA;IAChB,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,WAAW,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CAAA;IACpD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,KAAK,CAAA;IACrB,UAAU,CAAC,EAAE,KAAK,CAAA;IAClB,kBAAkB,CAAC,EAAE,WAAW,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAA;IAC5D,mBAAmB,CAAC,EAAE,WAAW,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC/D,mBAAmB,CAAC,EAAE,UAAU,CAAA;IAChC,SAAS,CAAC,EAAE,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,CAAA;IAC1C,YAAY,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC,CAAA;IACpC,OAAO,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;IAC7C,WAAW,CAAC,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAA;CAClD;;AAED,wBAEE"}
@@ -0,0 +1,29 @@
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
+ interface TargetedEvent {
4
+ target: Int32;
5
+ }
6
+ interface TextLayoutEvent extends TargetedEvent {
7
+ lines: string[];
8
+ }
9
+ interface CustomMenuItem {
10
+ title: string;
11
+ actionId: string;
12
+ }
13
+ interface CustomMenuActionEvent extends TargetedEvent {
14
+ actionId: string;
15
+ selectedText: string;
16
+ }
17
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
18
+ interface NativeProps extends ViewProps {
19
+ numberOfLines?: Int32;
20
+ allowFontScaling?: WithDefault<boolean, true>;
21
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
22
+ selectable?: boolean;
23
+ onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
24
+ customMenuItems?: ReadonlyArray<CustomMenuItem>;
25
+ onCustomMenuAction?: DirectEventHandler<CustomMenuActionEvent>;
26
+ }
27
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<NativeProps>;
28
+ export default _default;
29
+ //# sourceMappingURL=RNUITextViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../module/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAC;CACf;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzD,UAAU,WAAY,SAAQ,SAAS;IAErC,aAAa,CAAC,EAAE,KAAK,CAAC;IACtB,gBAAgB,CAAC,EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAGrD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAChE;;AAED,wBAEG"}
@@ -7,6 +7,7 @@ type TextDecorationLine = 'none' | 'underline' | 'line-through';
7
7
  type TextDecorationStyle = 'solid' | 'double' | 'dotted' | 'dashed';
8
8
  export type NativeFontWeight = 'normal' | 'bold' | 'ultraLight' | 'light' | 'medium' | 'semibold' | 'heavy';
9
9
  type FontStyle = 'normal' | 'italic';
10
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify';
10
11
  interface NativeProps extends ViewProps {
11
12
  text: string;
12
13
  color?: ColorValue;
@@ -19,6 +20,7 @@ interface NativeProps extends ViewProps {
19
20
  textDecorationLine?: WithDefault<TextDecorationLine, 'none'>;
20
21
  textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>;
21
22
  textDecorationColor?: ColorValue;
23
+ textAlign?: WithDefault<TextAlign, 'auto'>;
22
24
  shadowRadius?: WithDefault<Float, 0>;
23
25
  onPress?: BubblingEventHandler<TargetedEvent>;
24
26
  onLongPress?: BubblingEventHandler<TargetedEvent>;
@@ -1 +1 @@
1
- {"version":3,"file":"RNUITextViewChildNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNUITextViewChildNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,UAAU,EAAE,SAAS,EAAC,MAAM,cAAc,CAAA;AACvD,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,KAAK,EACL,WAAW,EACZ,MAAM,2CAA2C,CAAA;AAElD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAA;CACd;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,gBAA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 @@
1
- import type { ViewProps } from 'react-native';
2
- import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from 'react-native/Libraries/Types/CodegenTypes';
1
+ import type { ViewProps } from "react-native";
2
+ import type { BubblingEventHandler, Int32, WithDefault, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
3
  interface TargetedEvent {
4
4
  target: Int32;
5
5
  }
@@ -14,11 +14,11 @@ interface CustomMenuActionEvent extends TargetedEvent {
14
14
  actionId: string;
15
15
  selectedText: string;
16
16
  }
17
- type EllipsizeMode = 'head' | 'middle' | 'tail' | 'clip';
17
+ type EllipsizeMode = "head" | "middle" | "tail" | "clip";
18
18
  interface NativeProps extends ViewProps {
19
19
  numberOfLines?: Int32;
20
- allowsFontScaling?: boolean;
21
- ellipsizeMode?: WithDefault<EllipsizeMode, 'tail'>;
20
+ allowFontScaling?: WithDefault<boolean, true>;
21
+ ellipsizeMode?: WithDefault<EllipsizeMode, "tail">;
22
22
  selectable?: boolean;
23
23
  onTextLayout?: BubblingEventHandler<TextLayoutEvent>;
24
24
  customMenuItems?: ReadonlyArray<CustomMenuItem>;
@@ -1 +1 @@
1
- {"version":3,"file":"RNUITextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/RNUITextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EACV,oBAAoB,EACpB,KAAK,EACL,WAAW,EACX,kBAAkB,EACnB,MAAM,2CAA2C,CAAA;AAElD,UAAU,aAAa;IACrB,MAAM,EAAE,KAAK,CAAA;CACd;AAED,UAAU,eAAgB,SAAQ,aAAa;IAC7C,KAAK,EAAE,MAAM,EAAE,CAAA;CAChB;AAGD,UAAU,cAAc;IACtB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;CACjB;AAGD,UAAU,qBAAsB,SAAQ,aAAa;IACnD,QAAQ,EAAE,MAAM,CAAA;IACh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EAAE,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC9C,aAAa,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IACnD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,oBAAoB,CAAC,eAAe,CAAC,CAAC;IAGrD,eAAe,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC,qBAAqB,CAAC,CAAC;CAChE;;AAED,wBAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dongsuo/react-native-uitextview",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "Enhanced UITextView for React Native with custom context menu support",
5
5
  "repository": {
6
6
  "type": "git",
@@ -72,7 +72,7 @@
72
72
  "prettier": "^3.0.3",
73
73
  "react": "19.0.0",
74
74
  "react-native": "0.79.2",
75
- "react-native-builder-bob": "0.40.7",
75
+ "react-native-builder-bob": "0.40.12",
76
76
  "react-native-test-app": "4.0.4",
77
77
  "release-it": "^19.0.1",
78
78
  "turbo": "^1.10.7",
@@ -145,8 +145,7 @@
145
145
  "outputDir": {
146
146
  "android": "android/generated",
147
147
  "ios": "ios/generated"
148
- },
149
- "includesGeneratedCode": true
148
+ }
150
149
  },
151
150
  "create-react-native-library": {
152
151
  "languages": "kotlin-objc",
@@ -2,6 +2,10 @@ require "json"
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
 
5
+ # Detect whether the new architecture / Fabric is enabled
6
+ new_arch_enabled = ENV['RCT_NEW_ARCH_ENABLED'] == '1'
7
+
8
+
5
9
  Pod::Spec.new do |s|
6
10
  s.name = "react-native-uitextview"
7
11
  s.version = package["version"]
@@ -13,9 +17,18 @@ Pod::Spec.new do |s|
13
17
  s.platforms = { :ios => min_ios_version_supported }
14
18
  s.source = { :git => "https://github.com/bluesky-social/react-native-uitextview.git", :tag => "#{s.version}" }
15
19
 
16
- s.source_files = "ios/**/*.{h,m,mm,cpp}"
20
+ # Include module‑authored Obj‑C/Obj‑C++ plus the C++ files that Codegen
21
+ # writes to build/generated/ios during `pod install`
22
+ s.source_files = [
23
+ "ios/**/*.{h,mm,cpp}",
24
+ ]
17
25
 
18
- s.private_header_files = "ios/**/*.h"
26
+ install_modules_dependencies(s)
19
27
 
20
- install_modules_dependencies(s)
28
+ # ---------- Fabric Components (when using frameworks) ----------
29
+ if ENV['USE_FRAMEWORKS'] != nil && new_arch_enabled
30
+ add_dependency(s, "React-FabricComponents", :additional_framework_paths => [
31
+ "react/renderer/textlayoutmanager/platform/ios",
32
+ ])
33
+ end
21
34
  end
@@ -9,7 +9,7 @@ const project = (() => {
9
9
  sourceDir: path.join('example', 'ios'),
10
10
  },
11
11
  })
12
- } catch (e) {
12
+ } catch {
13
13
  return undefined
14
14
  }
15
15
  })()
@@ -1,4 +1,3 @@
1
- import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
2
1
  import type {ColorValue, ViewProps} from 'react-native'
3
2
  import type {
4
3
  BubblingEventHandler,
@@ -6,6 +5,7 @@ import type {
6
5
  Int32,
7
6
  WithDefault,
8
7
  } from 'react-native/Libraries/Types/CodegenTypes'
8
+ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'
9
9
 
10
10
  interface TargetedEvent {
11
11
  target: Int32
@@ -26,6 +26,8 @@ export type NativeFontWeight =
26
26
 
27
27
  type FontStyle = 'normal' | 'italic'
28
28
 
29
+ type TextAlign = 'auto' | 'left' | 'right' | 'center' | 'justify'
30
+
29
31
  interface NativeProps extends ViewProps {
30
32
  text: string
31
33
  color?: ColorValue
@@ -38,6 +40,7 @@ interface NativeProps extends ViewProps {
38
40
  textDecorationLine?: WithDefault<TextDecorationLine, 'none'>
39
41
  textDecorationStyle?: WithDefault<TextDecorationStyle, 'solid'>
40
42
  textDecorationColor?: ColorValue
43
+ textAlign?: WithDefault<TextAlign, 'auto'>
41
44
  shadowRadius?: WithDefault<Float, 0>
42
45
  onPress?: BubblingEventHandler<TargetedEvent>
43
46
  onLongPress?: BubblingEventHandler<TargetedEvent>