Skip to content

Commit

Permalink
fix(expo): header styles on IOS
Browse files Browse the repository at this point in the history
  • Loading branch information
mrevanzak committed Nov 13, 2023
1 parent 74afc14 commit 6a0077f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/expo/src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import { Platform } from "react-native";
import { SafeAreaView } from "react-native-safe-area-context";
import {
BorderRadiuses,
Expand All @@ -24,7 +25,7 @@ export default function Header(props: HeaderProps) {
const setSearch = useSearchStore((state) => state.setSearch);

return (
<SafeAreaView className="flex-row bg-[#157DC1]" {...props}>
<SafeAreaView className="bg-primary flex-row" {...props} edges={["top"]}>
<View flex row padding-s4 className="space-x-2">
{canGoBack && (
<Button
Expand Down Expand Up @@ -56,6 +57,7 @@ export default function Header(props: HeaderProps) {
}}
fieldStyle={{
marginLeft: 10,
marginVertical: Platform.OS === "ios" ? Spacings.s2 : 0,
}}
readonly={!canGoBack}
onChangeText={setSearch}
Expand Down

0 comments on commit 6a0077f

Please sign in to comment.