Bump @types/react to ^18 and adjust types (#889)

This commit is contained in:
Logan Rosen
2023-06-22 12:40:32 -04:00
committed by GitHub
parent 180697b66b
commit 9b19a95e63
15 changed files with 65 additions and 29 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
import React, {createContext, useContext, useMemo} from 'react'
import React, {ReactNode, createContext, useContext, useMemo} from 'react'
import {TextStyle, useColorScheme, ViewStyle} from 'react-native'
import {darkTheme, defaultTheme} from './themes'
@@ -78,6 +78,7 @@ export interface Theme {
}
export interface ThemeProviderProps {
children?: ReactNode
theme?: 'light' | 'dark' | 'system'
}