diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-01-19 14:17:15 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-01-19 14:17:15 -0600 |
commit | 39e996ed8eb1edc653b7f48f8a04c8defa0713e0 (patch) | |
tree | fa9eee96b44070d3e78e2256b54fe9e522867adf | |
parent | 43ef1756c10c974d90db11ff6432364ec0b43298 (diff) | |
download | voidsky-39e996ed8eb1edc653b7f48f8a04c8defa0713e0.tar.zst |
Fix weird bar at top of composer in dark mode
-rw-r--r-- | src/view/shell/mobile/Composer.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/view/shell/mobile/Composer.tsx b/src/view/shell/mobile/Composer.tsx index 84268936d..a19a4704c 100644 --- a/src/view/shell/mobile/Composer.tsx +++ b/src/view/shell/mobile/Composer.tsx @@ -4,6 +4,7 @@ import {Animated, Easing, Platform, StyleSheet, View} from 'react-native' import {ComposePost} from '../../com/composer/ComposePost' import {ComposerOpts} from '../../../state/models/shell-ui' import {useAnimatedValue} from '../../lib/hooks/useAnimatedValue' +import {usePalette} from '../../lib/hooks/usePalette' export const Composer = observer( ({ @@ -21,6 +22,7 @@ export const Composer = observer( onPost?: ComposerOpts['onPost'] onClose: () => void }) => { + const pal = usePalette('default') const initInterp = useAnimatedValue(0) useEffect(() => { @@ -57,7 +59,7 @@ export const Composer = observer( } return ( - <Animated.View style={[styles.wrapper, wrapperAnimStyle]}> + <Animated.View style={[styles.wrapper, pal.view, wrapperAnimStyle]}> <ComposePost replyTo={replyTo} imagesOpen={imagesOpen} @@ -75,7 +77,6 @@ const styles = StyleSheet.create({ top: 0, bottom: 0, width: '100%', - backgroundColor: '#fff', ...Platform.select({ ios: { paddingTop: 24, |