fix login screen header color

This commit is contained in:
Arnaud Vergnet 2021-05-22 14:06:27 +02:00
parent 19f6dd3cf0
commit 14365a92a4
2 changed files with 3 additions and 4 deletions

View file

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

View file

@ -60,9 +60,10 @@ function CollapsibleComponent(props: Props) {
collapsedColor: headerColors ? headerColors : theme.colors.surface,
useNativeDriver: true,
},
navigationOptions: {
headerStyle: { backgroundColor: theme.colors.surface },
headerStyle: {
backgroundColor: headerColors ? headerColors : theme.colors.surface,
},
},
});