Browse Source

fix login screen header color

Arnaud Vergnet 6 months ago
parent
commit
14365a92a4
2 changed files with 3 additions and 4 deletions
  1. 0
    2
      App.tsx
  2. 3
    2
      src/components/Collapsible/CollapsibleComponent.tsx

+ 0
- 2
App.tsx View File

@@ -59,8 +59,6 @@ LogBox.ignoreLogs([
59 59
   'Cannot update a component from inside the function body of a different component',
60 60
 ]);
61 61
 
62
-// TODO move preferences in smaller contextes for improved performances
63
-
64 62
 type StateType = {
65 63
   isLoading: boolean;
66 64
   initialPreferences: {

+ 3
- 2
src/components/Collapsible/CollapsibleComponent.tsx View File

@@ -60,9 +60,10 @@ function CollapsibleComponent(props: Props) {
60 60
       collapsedColor: headerColors ? headerColors : theme.colors.surface,
61 61
       useNativeDriver: true,
62 62
     },
63
-
64 63
     navigationOptions: {
65
-      headerStyle: { backgroundColor: theme.colors.surface },
64
+      headerStyle: {
65
+        backgroundColor: headerColors ? headerColors : theme.colors.surface,
66
+      },
66 67
     },
67 68
   });
68 69
 

Loading…
Cancel
Save