diff options
author | Samuel Newman <mozzius@protonmail.com> | 2024-05-30 07:44:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 05:44:20 +0100 |
commit | c4abaa1abcde54f15133b2e2b546f0d54a3a1d07 (patch) | |
tree | 996d1adcdc3ae1fa6a3c4a959e2a0df8d02235e6 /src/alf/util/useColorModeTheme.ts | |
parent | fba4a9ca023b5acfe8ae51e1839d4e5e305ea967 (diff) | |
download | voidsky-c4abaa1abcde54f15133b2e2b546f0d54a3a1d07.tar.zst |
Use `<Modal>` for Composer (#3588)
* use <Modal> to display composer * trigger `onPressCancel` on modal cancel * remove android top padding * use light statusbar on ios * use KeyboardStickyView from r-n-keyboard-controller * make extra bottom padding ios-only * make cancelRef optional * scope legacy modals * don't change bg color on ios * use fullScreen instead of formSheet * adjust padding on keyboardaccessory to account for new buttons * Revert "use KeyboardStickyView from r-n-keyboard-controller" This reverts commit 426c812904f427bdd08107cffc32e4be1d9b83bc. * fix insets * tweaks and merge * revert 89f51c72 * nit * import keyboard provider --------- Co-authored-by: Hailey <me@haileyok.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/alf/util/useColorModeTheme.ts')
-rw-r--r-- | src/alf/util/useColorModeTheme.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/alf/util/useColorModeTheme.ts b/src/alf/util/useColorModeTheme.ts index 4f8921bf9..301c993dd 100644 --- a/src/alf/util/useColorModeTheme.ts +++ b/src/alf/util/useColorModeTheme.ts @@ -1,10 +1,10 @@ import React from 'react' import {ColorSchemeName, useColorScheme} from 'react-native' +import * as SystemUI from 'expo-system-ui' -import {useThemePrefs} from 'state/shell' import {isWeb} from 'platform/detection' -import {ThemeName, light, dark, dim} from '#/alf/themes' -import * as SystemUI from 'expo-system-ui' +import {useThemePrefs} from 'state/shell' +import {dark, dim, light, ThemeName} from '#/alf/themes' export function useColorModeTheme(): ThemeName { const colorScheme = useColorScheme() |