From 9b19a95e638b2a5379560b5ffb27c423ad9a2e4e Mon Sep 17 00:00:00 2001 From: Logan Rosen Date: Thu, 22 Jun 2023 12:40:32 -0400 Subject: Bump @types/react to ^18 and adjust types (#889) --- __mocks__/@gorhom/bottom-sheet.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '__mocks__') diff --git a/__mocks__/@gorhom/bottom-sheet.tsx b/__mocks__/@gorhom/bottom-sheet.tsx index 31098601e..dae0d6551 100644 --- a/__mocks__/@gorhom/bottom-sheet.tsx +++ b/__mocks__/@gorhom/bottom-sheet.tsx @@ -1,4 +1,4 @@ -import React from 'react' +import React, {ReactNode} from 'react' import {View, ScrollView, Modal, FlatList, TextInput} from 'react-native' const BottomSheetModalContext = React.createContext(null) @@ -6,7 +6,10 @@ const BottomSheetModalContext = React.createContext(null) const BottomSheetModalProvider = (props: any) => { return } -class BottomSheet extends React.Component<{onClose?: () => void}> { +class BottomSheet extends React.Component<{ + onClose?: () => void + children?: ReactNode +}> { snapToIndex() {} snapToPosition() {} expand() {} -- cgit 1.4.1