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, + }, }, });