react-native-advanced-text 0.1.6 → 0.1.7
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/lib/module/AdvancedTextViewNativeComponent.ts +3 -2
- package/lib/typescript/src/AdvancedText.d.ts +2 -2
- package/lib/typescript/src/AdvancedTextViewNativeComponent.d.ts +2 -2
- package/lib/typescript/src/AdvancedTextViewNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/AdvancedText.tsx +2 -2
- package/src/AdvancedTextViewNativeComponent.ts +3 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { codegenNativeComponent } from 'react-native';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
3
3
|
// @ts-ignore
|
|
4
|
+
// eslint-disable-next-line prettier/prettier
|
|
4
5
|
import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
6
|
|
|
6
7
|
interface HighlightedWord {
|
|
@@ -8,7 +9,7 @@ interface HighlightedWord {
|
|
|
8
9
|
highlightColor: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
interface NativeProps extends
|
|
12
|
+
interface NativeProps extends TextProps {
|
|
12
13
|
text: string;
|
|
13
14
|
highlightedWords?: ReadonlyArray<HighlightedWord>;
|
|
14
15
|
menuOptions?: ReadonlyArray<string>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { NativeSyntheticEvent,
|
|
1
|
+
import type { NativeSyntheticEvent, TextProps } from 'react-native';
|
|
2
2
|
interface HighlightedWord {
|
|
3
3
|
index: number;
|
|
4
4
|
highlightColor: string;
|
|
5
5
|
}
|
|
6
|
-
interface NativeProps extends
|
|
6
|
+
interface NativeProps extends TextProps {
|
|
7
7
|
text: string;
|
|
8
8
|
highlightedWords?: ReadonlyArray<HighlightedWord>;
|
|
9
9
|
menuOptions?: ReadonlyArray<string>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { TextProps } from 'react-native';
|
|
2
2
|
import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
3
|
interface HighlightedWord {
|
|
4
4
|
index: Int32;
|
|
5
5
|
highlightColor: string;
|
|
6
6
|
}
|
|
7
|
-
interface NativeProps extends
|
|
7
|
+
interface NativeProps extends TextProps {
|
|
8
8
|
text: string;
|
|
9
9
|
highlightedWords?: ReadonlyArray<HighlightedWord>;
|
|
10
10
|
menuOptions?: ReadonlyArray<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdvancedTextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/AdvancedTextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"AdvancedTextViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/AdvancedTextViewNativeComponent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AAE3F,UAAU,eAAe;IACvB,KAAK,EAAE,KAAK,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,UAAU,WAAY,SAAQ,SAAS;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,kBAAkB,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,WAAW,CAAC,EAAE,kBAAkB,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC9E,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B;;AAED,wBAAuE"}
|
package/package.json
CHANGED
package/src/AdvancedText.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NativeSyntheticEvent,
|
|
1
|
+
import type { NativeSyntheticEvent, TextProps } from 'react-native';
|
|
2
2
|
import AdvancedTextViewNativeComponent from './AdvancedTextViewNativeComponent';
|
|
3
3
|
|
|
4
4
|
interface HighlightedWord {
|
|
@@ -6,7 +6,7 @@ interface HighlightedWord {
|
|
|
6
6
|
highlightColor: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
interface NativeProps extends
|
|
9
|
+
interface NativeProps extends TextProps {
|
|
10
10
|
text: string;
|
|
11
11
|
highlightedWords?: ReadonlyArray<HighlightedWord>;
|
|
12
12
|
menuOptions?: ReadonlyArray<string>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { codegenNativeComponent } from 'react-native';
|
|
2
|
-
import type {
|
|
2
|
+
import type { TextProps } from 'react-native';
|
|
3
3
|
// @ts-ignore
|
|
4
|
+
// eslint-disable-next-line prettier/prettier
|
|
4
5
|
import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
|
|
5
6
|
|
|
6
7
|
interface HighlightedWord {
|
|
@@ -8,7 +9,7 @@ interface HighlightedWord {
|
|
|
8
9
|
highlightColor: string;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
|
-
interface NativeProps extends
|
|
12
|
+
interface NativeProps extends TextProps {
|
|
12
13
|
text: string;
|
|
13
14
|
highlightedWords?: ReadonlyArray<HighlightedWord>;
|
|
14
15
|
menuOptions?: ReadonlyArray<string>;
|