diff --git a/src/navigation/SwipeNavigator.js b/src/navigation/SwipeNavigator.js index 9713364ed52..f690d449fe3 100644 --- a/src/navigation/SwipeNavigator.js +++ b/src/navigation/SwipeNavigator.js @@ -64,7 +64,7 @@ const animationConfig = { const Swipe = createMaterialTopTabNavigator(); -const getHeaderHeight = () => { +export const getHeaderHeight = () => { if (IS_IOS) { return 82; } diff --git a/src/screens/discover/components/DiscoverSearch.js b/src/screens/discover/components/DiscoverSearch.js index 8f9f46d2729..39e371e4f06 100644 --- a/src/screens/discover/components/DiscoverSearch.js +++ b/src/screens/discover/components/DiscoverSearch.js @@ -38,6 +38,7 @@ import { getPoapAndOpenSheetWithSecretWord, } from '@/utils/poaps'; import { navigateToMintCollection } from '@/resources/reservoir/mints'; +import { getHeaderHeight } from '@/navigation/SwipeNavigator'; export const SearchContainer = styled(Row)({ height: '100%', @@ -61,6 +62,7 @@ export default function DiscoverSearch() { const { colors } = useTheme(); const profilesEnabled = useExperimentalFlag(PROFILES); + const marginBottom = useMemo(() => getHeaderHeight(), []); const currencySelectionListRef = useRef(); const [searchQueryForSearch] = useDebounce(searchQuery, 350); @@ -277,7 +279,7 @@ export default function DiscoverSearch() { return (