File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { Routes } from "@/navigation/Routes";
44import { StarshipDetailsScreen } from "@/screens/StarshipDetailsScreen" ;
55import { StarshipFeedScreen } from "@/screens/StarshipFeedScreen" ;
66import { 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 = {
1920const Stack = createNativeStackNavigator < StarshipStackParamList > ( ) ;
2021
2122export 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 } }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments