Skip to content

Commit ff40bc3

Browse files
author
Daniel Jung
committed
Add onLongPress as customized type
1 parent ff14375 commit ff40bc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ParsedText.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ declare module 'react-native-parsed-text' {
22
import { Component } from 'react';
33
import { TextProps } from 'react-native';
44

5-
interface BaseParseShape extends Pick<TextProps, Exclude<keyof TextProps, 'onPress'>> {
5+
interface BaseParseShape extends Pick<TextProps, Exclude<keyof TextProps, 'onPress' | 'onLongPress' >> {
66
renderText?: (matchingString: string) => string;
77
onPress?: (text: string, index: number) => void;
8+
onLongPress?: (text: string, index: number) => void;
89
}
910

1011
interface DefaultParseShape extends BaseParseShape {

0 commit comments

Comments
 (0)