From 994ef84a4106e2e693aba80c638e40ec0dbc858a Mon Sep 17 00:00:00 2001
From: Jesse Sessler <jesse.sessler@gmail.com>
Date: Sat, 28 Mar 2020 17:25:29 -0500
Subject: [PATCH] Fix types for new props

---
 types/flowtypes.js |  3 +++
 types/index.d.ts   | 12 ++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/types/flowtypes.js b/types/flowtypes.js
index 0228d5e..1237645 100644
--- a/types/flowtypes.js
+++ b/types/flowtypes.js
@@ -3,6 +3,7 @@
 export type SwipeRowPropsType = {
     setScrollEnabled?: Function,
     swipeGestureBegan?: Function,
+    swipeGestureEnded?: Function,
     onRowOpen?: Function,
     onRowDidOpen?: Function,
     leftOpenValue?: number,
@@ -72,6 +73,7 @@ export type SwipeListPropsType = {
     recalculateHiddenLayout: boolean,
     disableHiddenLayoutCalculation: boolean,
     swipeGestureBegan?: Function,
+    swipeGestureEnded?: Function,
     onRowOpen?: Function,
     onRowDidOpen?: Function,
     onRowClose?: Function,
@@ -97,6 +99,7 @@ export type SwipeListPropsType = {
     shouldItemUpdate?: Function,
     onSwipeValueChange?: Function,
     useNativeDriver: boolean,
+    useAnimatedList: boolean,
     renderHiddenRow?: Function,
     keyExtractor?: any,
     scrollEnabled?: boolean,
diff --git a/types/index.d.ts b/types/index.d.ts
index e08d926..eeb6b99 100644
--- a/types/index.d.ts
+++ b/types/index.d.ts
@@ -11,6 +11,10 @@ interface IPropsSwipeRow<T> {
 	 * Called when it has been detected that a row should be swiped open.
 	 */
 	swipeGestureBegan(): void;
+	/**
+	 * Called when user has ended their swipe gesture
+	 */
+	swipeGestureEnded(): void;
 	/**
 	 * Called when a swipe row is animating open. Used by the SwipeListView
 	 * to keep references to open rows.
@@ -248,6 +252,10 @@ interface IPropsSwipeListView<T> {
 	 * Called when a swipe row is animating swipe
 	 */
 	swipeGestureBegan(rowKey: string): void;
+	/**
+	 * Called when user has ended their swipe gesture
+	 */
+	swipeGestureEnded(rowKey: string): void;
 	/**
 	 * Called when a swipe row is animating open
 	 */
@@ -362,6 +370,10 @@ interface IPropsSwipeListView<T> {
 		direction: 'left' | 'right';
 		isOpen: boolean;
 	}): void;
+	/**
+	 * Use Animated.Flatlist or Animated.Sectionlist
+	 */
+	useAnimateList: boolean;
 }
 
 type SectionListPropsOverride<T> = Omit<SectionListProps<T>, 'renderItem'>