From 14365a92a40f347ebba45bae1e71da4aa725c8d2 Mon Sep 17 00:00:00 2001 From: Arnaud Vergnet Date: Sat, 22 May 2021 14:06:27 +0200 Subject: [PATCH] fix login screen header color --- App.tsx | 2 -- src/components/Collapsible/CollapsibleComponent.tsx | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/App.tsx b/App.tsx index 6287e91..9d5a93f 100644 --- a/App.tsx +++ b/App.tsx @@ -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: { diff --git a/src/components/Collapsible/CollapsibleComponent.tsx b/src/components/Collapsible/CollapsibleComponent.tsx index 1939d75..cf823f0 100644 --- a/src/components/Collapsible/CollapsibleComponent.tsx +++ b/src/components/Collapsible/CollapsibleComponent.tsx @@ -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, + }, }, });