diff options
| author | Mohamed Bassem <me@mbassem.com> | 2026-02-01 15:59:11 +0000 |
|---|---|---|
| committer | Mohamed Bassem <me@mbassem.com> | 2026-02-01 15:59:11 +0000 |
| commit | fdc53eee79fdb5033b9ab46e6969917f6cd59bb0 (patch) | |
| tree | 44d923bf2d2482cfabcffdadc48a0c2ab537685b /apps/mobile/components/navigation/stack.tsx | |
| parent | 15d9d9897487d5e1881f75a4d92af37f6937eb80 (diff) | |
| download | karakeep-fdc53eee79fdb5033b9ab46e6969917f6cd59bb0.tar.zst | |
fix(mobile): fix some mobile warning after expo 54 upgrade
Diffstat (limited to 'apps/mobile/components/navigation/stack.tsx')
| -rw-r--r-- | apps/mobile/components/navigation/stack.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/mobile/components/navigation/stack.tsx b/apps/mobile/components/navigation/stack.tsx index f53b3652..145c591f 100644 --- a/apps/mobile/components/navigation/stack.tsx +++ b/apps/mobile/components/navigation/stack.tsx @@ -1,4 +1,4 @@ -import { TextStyle, ViewStyle } from "react-native"; +import { Platform, TextStyle, ViewStyle } from "react-native"; import { Stack } from "expo-router/stack"; import { cssInterop } from "nativewind"; @@ -14,7 +14,10 @@ function StackImpl({ contentStyle, headerStyle, ...props }: StackProps) { headerStyle: { backgroundColor: headerStyle?.backgroundColor?.toString(), }, - navigationBarColor: contentStyle?.backgroundColor?.toString(), + navigationBarColor: + Platform.OS === "android" + ? undefined + : contentStyle?.backgroundColor?.toString(), headerTintColor: headerStyle?.color?.toString(), }; return <Stack {...props} />; |
