diff --git a/src/ParsedText.d.ts b/src/ParsedText.d.ts index 5e63fbe..43f4318 100644 --- a/src/ParsedText.d.ts +++ b/src/ParsedText.d.ts @@ -8,7 +8,7 @@ declare module 'react-native-parsed-text' { Exclude > { /** arbitrary function to rewrite the matched string into something else */ - renderText?: (matchingString: string, matches: string[]) => string; + renderText?: (matchingString: string, matches: string[]) => string | React.Element; onPress?: (text: string, index: number) => void; onLongPress?: (text: string, index: number) => void; }