Skip to content

Commit 5d3a942

Browse files
committed
Add useNativeDriver to types
1 parent 2037922 commit 5d3a942

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

types/index.d.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ interface IPropsSwipeRow<T> {
201201
value: number;
202202
}): void;
203203
item: T;
204+
/**
205+
* useNativeDriver: true for all animations where possible
206+
*/
207+
useNativeDriver: boolean;
204208
}
205209

206210
export class SwipeRow<T> extends Component<Partial<IPropsSwipeRow<T>>> {
@@ -478,6 +482,10 @@ interface IPropsSwipeListView<T> {
478482
* Use Animated.Flatlist or Animated.Sectionlist
479483
*/
480484
useAnimatedList: boolean;
485+
/**
486+
* useNativeDriver: true for all animations where possible
487+
*/
488+
useNativeDriver: boolean;
481489
}
482490

483491
type SectionListPropsOverride<T> = Omit<SectionListProps<T>, 'renderItem'>

0 commit comments

Comments
 (0)