Skip to content

Commit 7b6d735

Browse files
committed
fix modal background
1 parent b3845d1 commit 7b6d735

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

hackathon/spacecraft/src/navigation/StarshipNavigator.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Routes } from "@/navigation/Routes";
44
import { StarshipDetailsScreen } from "@/screens/StarshipDetailsScreen";
55
import { StarshipFeedScreen } from "@/screens/StarshipFeedScreen";
66
import { createNativeStackNavigator } from "@react-navigation/native-stack";
7+
import { useTheme } from "react-native-paper";
78
// For Example
89
// import { StarshipFeedScreen } from "@/screens/exercice/StarshipFeedScreen";
910

@@ -19,6 +20,8 @@ export type StarshipStackParamList = {
1920
const Stack = createNativeStackNavigator<StarshipStackParamList>();
2021

2122
export const StarshipNavigator = () => {
23+
const theme = useTheme();
24+
2225
return (
2326
<Stack.Navigator
2427
screenOptions={{
@@ -34,7 +37,7 @@ export const StarshipNavigator = () => {
3437
name={Routes.STARSHIP_DETAILS_SCREEN}
3538
options={{
3639
contentStyle: {
37-
backgroundColor: "#ffffff",
40+
backgroundColor: theme.colors.background,
3841
},
3942
presentation: "modal",
4043
}}

hackathon/spacecraft/src/theme/color-tokens.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)