Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React = require('react');
import { Component } from 'react';
Comment on lines +1 to 2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import React = require('react');
import { Component } from 'react';
import { Component, PropsWithChildren } from 'react';

import { StyleProp, ViewStyle, ListView, NativeSyntheticEvent, NativeScrollEvent, ListRenderItemInfo, ListViewDataSource, SectionListProps, FlatListProps, GestureResponderEvent, PanResponderGestureState } from 'react-native';

Expand Down Expand Up @@ -207,7 +208,7 @@ interface IPropsSwipeRow<T> {
useNativeDriver: boolean;
}

export class SwipeRow<T> extends Component<Partial<IPropsSwipeRow<T>>> {
export class SwipeRow<T> extends Component<Partial<React.PropsWithChildren<IPropsSwipeRow<T>>>> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export class SwipeRow<T> extends Component<Partial<React.PropsWithChildren<IPropsSwipeRow<T>>>> {
export class SwipeRow<T> extends Component<Partial<PropsWithChildren<IPropsSwipeRow<T>>>> {

isOpen: boolean;
closeRow: () => void;
closeRowWithoutAnimation: () => void;
Expand Down