use IS_WEB
This commit is contained in:
@@ -6,8 +6,8 @@ import {
|
|||||||
} from 'react-native-safe-area-context'
|
} from 'react-native-safe-area-context'
|
||||||
|
|
||||||
import {clamp} from '#/lib/numbers'
|
import {clamp} from '#/lib/numbers'
|
||||||
import {isWeb} from '#/platform/detection'
|
|
||||||
import {atoms as a, platform, useBreakpoints} from '#/alf'
|
import {atoms as a, platform, useBreakpoints} from '#/alf'
|
||||||
|
import {IS_WEB} from '#/env'
|
||||||
|
|
||||||
type LayoutContextValue = {
|
type LayoutContextValue = {
|
||||||
headerHeight: SharedValue<number>
|
headerHeight: SharedValue<number>
|
||||||
@@ -42,7 +42,7 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
|
|||||||
const value = useMemo(
|
const value = useMemo(
|
||||||
() => ({
|
() => ({
|
||||||
headerHeight,
|
headerHeight,
|
||||||
footerHeight: isWeb && gtMobile ? 0 : footerHeight,
|
footerHeight: IS_WEB && gtMobile ? 0 : footerHeight,
|
||||||
setFooterHeight: (height: number) => setFooterHeight(round4dp(height)),
|
setFooterHeight: (height: number) => setFooterHeight(round4dp(height)),
|
||||||
}),
|
}),
|
||||||
[headerHeight, footerHeight, setFooterHeight, gtMobile],
|
[headerHeight, footerHeight, setFooterHeight, gtMobile],
|
||||||
|
|||||||
Reference in New Issue
Block a user