1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Support iPad and bump versions

This commit is contained in:
Zhiyuan Zheng
2022-02-04 00:43:22 +01:00
parent 4694002b92
commit e7aba92f7c
9 changed files with 718 additions and 335 deletions

View File

@ -36,10 +36,10 @@ const useColorSchemeDelay = (delay = 500) => {
[]
)
React.useEffect(() => {
Appearance.addChangeListener(onColorSchemeChange)
const listener = Appearance.addChangeListener(onColorSchemeChange)
return () => {
onColorSchemeChange.cancel()
Appearance.removeChangeListener(onColorSchemeChange)
listener.remove()
}
}, [])
return colorScheme