Tweak approach to the viewheader

This commit is contained in:
Paul Frazee 2023-02-23 12:26:25 -06:00
parent ac655a0cf4
commit a014b4e6cb
5 changed files with 15 additions and 14 deletions

View file

@ -8,6 +8,7 @@ import {useStores} from 'state/index'
import {usePalette} from 'lib/hooks/usePalette'
import {useAnimatedValue} from 'lib/hooks/useAnimatedValue'
import {useAnalytics} from 'lib/analytics'
import {isDesktopWeb} from '../../../platform/detection'
const BACK_HITSLOP = {left: 10, top: 10, right: 30, bottom: 10}
@ -33,6 +34,9 @@ export const ViewHeader = observer(function ViewHeader({
if (typeof canGoBack === 'undefined') {
canGoBack = store.nav.tab.canGoBack
}
if (isDesktopWeb) {
return undefined
}
return (
<Container hideOnScroll={hideOnScroll || false}>
<TouchableOpacity