From fab120df52f84df581bcfa1b94e9f878d3b4aac7 Mon Sep 17 00:00:00 2001 From: KAMEDAkyosuke Date: Wed, 27 Apr 2022 13:57:14 +0900 Subject: [PATCH] wrap React.PropsWithChildren https://github.com/DefinitelyTyped/DefinitelyTyped/commit/55dc209ceb6dbcd59c4c68cc8dfb77faadd9de12 children is removed on React 18 --- types/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index bd71cf6..9d8f8f7 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,3 +1,4 @@ +import React = require('react'); import { Component } from 'react'; import { StyleProp, ViewStyle, ListView, NativeSyntheticEvent, NativeScrollEvent, ListRenderItemInfo, ListViewDataSource, SectionListProps, FlatListProps, GestureResponderEvent, PanResponderGestureState } from 'react-native'; @@ -207,7 +208,7 @@ interface IPropsSwipeRow { useNativeDriver: boolean; } -export class SwipeRow extends Component>> { +export class SwipeRow extends Component>>> { isOpen: boolean; closeRow: () => void; closeRowWithoutAnimation: () => void;