From 75abfd06bf7b34085115914fcff930ba8deedb5f Mon Sep 17 00:00:00 2001 From: Alex Fernandez Date: Tue, 22 Jun 2021 09:34:41 -0600 Subject: [PATCH] fix: list.accordion onlongpress type (#2697) --- src/components/List/ListAccordion.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/List/ListAccordion.tsx b/src/components/List/ListAccordion.tsx index e98eafeec9..47010da2f5 100644 --- a/src/components/List/ListAccordion.tsx +++ b/src/components/List/ListAccordion.tsx @@ -7,6 +7,7 @@ import { StyleProp, TextStyle, I18nManager, + GestureResponderEvent, } from 'react-native'; import TouchableRipple from '../TouchableRipple/TouchableRipple'; import MaterialCommunityIcon from '../MaterialCommunityIcon'; @@ -45,7 +46,7 @@ type Props = { /** * Function to execute on long press. */ - onLongPress?: () => void; + onLongPress?: (e: GestureResponderEvent) => void; /** * Content of the section. */