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";
4
4
import { StarshipDetailsScreen } from "@/screens/StarshipDetailsScreen" ;
5
5
import { StarshipFeedScreen } from "@/screens/StarshipFeedScreen" ;
6
6
import { createNativeStackNavigator } from "@react-navigation/native-stack" ;
7
+ import { useTheme } from "react-native-paper" ;
7
8
// For Example
8
9
// import { StarshipFeedScreen } from "@/screens/exercice/StarshipFeedScreen";
9
10
@@ -19,6 +20,8 @@ export type StarshipStackParamList = {
19
20
const Stack = createNativeStackNavigator < StarshipStackParamList > ( ) ;
20
21
21
22
export const StarshipNavigator = ( ) => {
23
+ const theme = useTheme ( ) ;
24
+
22
25
return (
23
26
< Stack . Navigator
24
27
screenOptions = { {
@@ -34,7 +37,7 @@ export const StarshipNavigator = () => {
34
37
name = { Routes . STARSHIP_DETAILS_SCREEN }
35
38
options = { {
36
39
contentStyle : {
37
- backgroundColor : "#ffffff" ,
40
+ backgroundColor : theme . colors . background ,
38
41
} ,
39
42
presentation : "modal" ,
40
43
} }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments