diff --git a/README.md b/README.md index 22d1010..cf65b1e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# React Native Text Highlighter +# React Native Text Touch Highlighter -React Native Text Highlighter is a versatile and user-friendly component that allows you to implement text highlighting and selection functionality in your React Native applications. This package simplifies the integration of text selection and annotation features, making it an ideal solution for mobile apps that require text manipulation or document annotation. +React Native Text Touch Highlighter is a versatile and user-friendly component that allows you to implement text highlighting and selection functionality in your React Native applications. This package simplifies the integration of text selection and annotation features, making it an ideal solution for mobile apps that require text manipulation or document annotation.
diff --git a/example/src/App.tsx b/example/src/App.tsx
index fe21886..175e0c7 100644
--- a/example/src/App.tsx
+++ b/example/src/App.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
-import { StyleSheet, View } from 'react-native';
+import { Button, StyleSheet, View } from 'react-native';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import { HighlightText } from 'rn-text-touch-highlight';
@@ -11,21 +11,28 @@ export default function App() {
const data = highlightRef.current?.getHighlightedData();
console.log(data);
};
- const deleteFun = (id) => {
+ const deleteFun = (id: number) => {
highlightRef.current?.deleteHighlight(id);
};
return (