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:
@ -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
|
||||
|
Reference in New Issue
Block a user