fix linting & type errors (#819)
parent
7d7410942f
commit
189fdb1789
|
@ -66,7 +66,7 @@
|
|||
"base64-js": "^1.5.1",
|
||||
"email-validator": "^2.0.4",
|
||||
"eslint-plugin-react-native-a11y": "^3.3.0",
|
||||
"expo": "~48.0.15",
|
||||
"expo": "~48.0.18",
|
||||
"expo-application": "~5.1.1",
|
||||
"expo-build-properties": "~0.5.1",
|
||||
"expo-camera": "~13.2.1",
|
||||
|
|
|
@ -78,7 +78,7 @@ export interface Theme {
|
|||
}
|
||||
|
||||
export interface ThemeProviderProps {
|
||||
theme?: ColorScheme
|
||||
theme?: 'light' | 'dark' | 'system'
|
||||
}
|
||||
|
||||
export const ThemeContext = createContext<Theme>(defaultTheme)
|
||||
|
@ -96,7 +96,7 @@ export const ThemeProvider: React.FC<ThemeProviderProps> = ({
|
|||
|
||||
const value = useMemo(
|
||||
() => (colorScheme === 'dark' ? darkTheme : defaultTheme),
|
||||
[colorScheme, theme],
|
||||
[colorScheme],
|
||||
)
|
||||
|
||||
return <ThemeContext.Provider value={value}>{children}</ThemeContext.Provider>
|
||||
|
|
18
yarn.lock
18
yarn.lock
|
@ -1733,10 +1733,10 @@
|
|||
mv "~2"
|
||||
safe-json-stringify "~1"
|
||||
|
||||
"@expo/cli@0.7.1":
|
||||
version "0.7.1"
|
||||
resolved "https://registry.yarnpkg.com/@expo/cli/-/cli-0.7.1.tgz#8b2e32867452b4dad006759dd438b5f7fc4bc047"
|
||||
integrity sha512-414sC4phJA5p96+bgPsyaPNwsepcOsGeErxFXp9OhqwgiQpw+H0uN9mVrvNIKLDHMVWHrW9bAFUEcpoL6VkzbQ==
|
||||
"@expo/cli@0.7.2":
|
||||
version "0.7.2"
|
||||
resolved "https://registry.yarnpkg.com/@expo/cli/-/cli-0.7.2.tgz#22df58e7ee355cdc06d8d5e0b60c7d11c24d13d7"
|
||||
integrity sha512-QOooDZ1qy31GsXj2Z5JxpofhZO51loF7NK8QPj5/dHJmG88dQdM4TBA5BWutDN/CA3Dseg+oTCaFiehu3Rn1ew==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.20.0"
|
||||
"@expo/code-signing-certificates" "0.0.5"
|
||||
|
@ -8925,13 +8925,13 @@ expo-updates@~0.16.4:
|
|||
fbemitter "^3.0.0"
|
||||
resolve-from "^5.0.0"
|
||||
|
||||
expo@~48.0.15:
|
||||
version "48.0.17"
|
||||
resolved "https://registry.yarnpkg.com/expo/-/expo-48.0.17.tgz#000773a2675e5bf95688a84fbc625c105f8b8af9"
|
||||
integrity sha512-5T1CsMUlfI+xFB89GOU+/xtSSbSBBFVTqwgheAU0cQolfbs+YyJCMTKU5vN45N5OK+ym7p/LKPa6DQAxYPF8YQ==
|
||||
expo@~48.0.18:
|
||||
version "48.0.18"
|
||||
resolved "https://registry.yarnpkg.com/expo/-/expo-48.0.18.tgz#5df44c93c2e3ab95dd9f513cd7c9f6a5bf078241"
|
||||
integrity sha512-mRsOQC3e+VhUKEaYJlvIDiqwaQtFEJv9JZZ8yRkofsj1y+9WoQFq5WN+w2sKg+aMvTE3ReNzhhwBM7QMVy5FrA==
|
||||
dependencies:
|
||||
"@babel/runtime" "^7.20.0"
|
||||
"@expo/cli" "0.7.1"
|
||||
"@expo/cli" "0.7.2"
|
||||
"@expo/config" "8.0.2"
|
||||
"@expo/config-plugins" "6.0.2"
|
||||
"@expo/vector-icons" "^13.0.0"
|
||||
|
|
Loading…
Reference in New Issue