Browse Source

fix header darkmode not changing

Arnaud Vergnet 2 years ago
parent
commit
19f6dd3cf0
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/components/Collapsible/CollapsibleComponent.tsx

+ 6
- 0
src/components/Collapsible/CollapsibleComponent.tsx View File

@@ -51,6 +51,8 @@ function CollapsibleComponent(props: Props) {
51 51
   const { paddedProps, headerColors } = props;
52 52
   const Comp = props.component;
53 53
   const theme = useTheme();
54
+  console.log(theme.dark);
55
+
54 56
   const { setCollapsible } = useCollapsible();
55 57
 
56 58
   const collapsible = useCollapsibleHeader({
@@ -58,6 +60,10 @@ function CollapsibleComponent(props: Props) {
58 60
       collapsedColor: headerColors ? headerColors : theme.colors.surface,
59 61
       useNativeDriver: true,
60 62
     },
63
+
64
+    navigationOptions: {
65
+      headerStyle: { backgroundColor: theme.colors.surface },
66
+    },
61 67
   });
62 68
 
63 69
   useFocusEffect(

Loading…
Cancel
Save