Browse Source

fix login screen header color

Arnaud Vergnet 2 years 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
   'Cannot update a component from inside the function body of a different component',
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
 type StateType = {
62
 type StateType = {
65
   isLoading: boolean;
63
   isLoading: boolean;
66
   initialPreferences: {
64
   initialPreferences: {

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

60
       collapsedColor: headerColors ? headerColors : theme.colors.surface,
60
       collapsedColor: headerColors ? headerColors : theme.colors.surface,
61
       useNativeDriver: true,
61
       useNativeDriver: true,
62
     },
62
     },
63
-
64
     navigationOptions: {
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