about summary refs log tree commit diff
path: root/__mocks__
diff options
context:
space:
mode:
authorLogan Rosen <loganrosen@gmail.com>2023-06-22 12:40:32 -0400
committerGitHub <noreply@github.com>2023-06-22 12:40:32 -0400
commit9b19a95e638b2a5379560b5ffb27c423ad9a2e4e (patch)
tree90f35e751116815beffd587901415a9a94ca7eb7 /__mocks__
parent180697b66b038459236a023c712709651cba48c1 (diff)
downloadvoidsky-9b19a95e638b2a5379560b5ffb27c423ad9a2e4e.tar.zst
Bump @types/react to ^18 and adjust types (#889)
Diffstat (limited to '__mocks__')
-rw-r--r--__mocks__/@gorhom/bottom-sheet.tsx7
1 files changed, 5 insertions, 2 deletions
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 <BottomSheetModalContext.Provider {...props} value={{}} />
 }
-class BottomSheet extends React.Component<{onClose?: () => void}> {
+class BottomSheet extends React.Component<{
+  onClose?: () => void
+  children?: ReactNode
+}> {
   snapToIndex() {}
   snapToPosition() {}
   expand() {}