react-native-advanced-text 0.1.7 → 0.1.8

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.
@@ -1,5 +1,5 @@
1
1
  import { codegenNativeComponent } from 'react-native';
2
- import type { TextProps } from 'react-native';
2
+ import type { ViewProps } from 'react-native';
3
3
  // @ts-ignore
4
4
  // eslint-disable-next-line prettier/prettier
5
5
  import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
@@ -9,7 +9,7 @@ interface HighlightedWord {
9
9
  highlightColor: string;
10
10
  }
11
11
 
12
- interface NativeProps extends TextProps {
12
+ interface NativeProps extends ViewProps {
13
13
  text: string;
14
14
  highlightedWords?: ReadonlyArray<HighlightedWord>;
15
15
  menuOptions?: ReadonlyArray<string>;
@@ -1,9 +1,9 @@
1
- import type { NativeSyntheticEvent, TextProps } from 'react-native';
1
+ import type { NativeSyntheticEvent, ViewProps } from 'react-native';
2
2
  interface HighlightedWord {
3
3
  index: number;
4
4
  highlightColor: string;
5
5
  }
6
- interface NativeProps extends TextProps {
6
+ interface NativeProps extends ViewProps {
7
7
  text: string;
8
8
  highlightedWords?: ReadonlyArray<HighlightedWord>;
9
9
  menuOptions?: ReadonlyArray<string>;
@@ -1,10 +1,10 @@
1
- import type { TextProps } from 'react-native';
1
+ import type { ViewProps } 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 TextProps {
7
+ interface NativeProps extends ViewProps {
8
8
  text: string;
9
9
  highlightedWords?: ReadonlyArray<HighlightedWord>;
10
10
  menuOptions?: ReadonlyArray<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-advanced-text",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": " Advanced text component for React Native with custom select options.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -1,4 +1,4 @@
1
- import type { NativeSyntheticEvent, TextProps } from 'react-native';
1
+ import type { NativeSyntheticEvent, ViewProps } 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 TextProps {
9
+ interface NativeProps extends ViewProps {
10
10
  text: string;
11
11
  highlightedWords?: ReadonlyArray<HighlightedWord>;
12
12
  menuOptions?: ReadonlyArray<string>;
@@ -1,5 +1,5 @@
1
1
  import { codegenNativeComponent } from 'react-native';
2
- import type { TextProps } from 'react-native';
2
+ import type { ViewProps } from 'react-native';
3
3
  // @ts-ignore
4
4
  // eslint-disable-next-line prettier/prettier
5
5
  import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
@@ -9,7 +9,7 @@ interface HighlightedWord {
9
9
  highlightColor: string;
10
10
  }
11
11
 
12
- interface NativeProps extends TextProps {
12
+ interface NativeProps extends ViewProps {
13
13
  text: string;
14
14
  highlightedWords?: ReadonlyArray<HighlightedWord>;
15
15
  menuOptions?: ReadonlyArray<string>;