We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff14375 commit ff40bc3Copy full SHA for ff40bc3
src/ParsedText.d.ts
@@ -2,9 +2,10 @@ declare module 'react-native-parsed-text' {
2
import { Component } from 'react';
3
import { TextProps } from 'react-native';
4
5
- interface BaseParseShape extends Pick<TextProps, Exclude<keyof TextProps, 'onPress'>> {
+ interface BaseParseShape extends Pick<TextProps, Exclude<keyof TextProps, 'onPress' | 'onLongPress' >> {
6
renderText?: (matchingString: string) => string;
7
onPress?: (text: string, index: number) => void;
8
+ onLongPress?: (text: string, index: number) => void;
9
}
10
11
interface DefaultParseShape extends BaseParseShape {
0 commit comments