mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 12:23:24 +00:00
fix: use safe insets for header
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import { Linking } from "react-native";
|
import { Linking } from "react-native";
|
||||||
|
import { useSafeAreaInsets } from "react-native-safe-area-context";
|
||||||
import { FontAwesome6, MaterialIcons } from "@expo/vector-icons";
|
import { FontAwesome6, MaterialIcons } from "@expo/vector-icons";
|
||||||
import { Circle, View } from "tamagui";
|
import { Circle, View } from "tamagui";
|
||||||
|
|
||||||
@@ -6,8 +7,15 @@ import { DISCORD_LINK, GITHUB_LINK } from "~/constants/core";
|
|||||||
import { BrandPill } from "../BrandPill";
|
import { BrandPill } from "../BrandPill";
|
||||||
|
|
||||||
export function Header() {
|
export function Header() {
|
||||||
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View alignItems="center" gap="$3" flexDirection="row">
|
<View
|
||||||
|
paddingTop={insets.top}
|
||||||
|
alignItems="center"
|
||||||
|
gap="$3"
|
||||||
|
flexDirection="row"
|
||||||
|
>
|
||||||
<BrandPill />
|
<BrandPill />
|
||||||
|
|
||||||
<Circle
|
<Circle
|
||||||
|
Reference in New Issue
Block a user