fix header darkmode not changing
這個提交存在於:
父節點
acbbd2d27d
當前提交
19f6dd3cf0
共有 1 個檔案被更改,包括 6 行新增 和 0 行删除
|
|
@ -51,6 +51,8 @@ function CollapsibleComponent(props: Props) {
|
|||
const { paddedProps, headerColors } = props;
|
||||
const Comp = props.component;
|
||||
const theme = useTheme();
|
||||
console.log(theme.dark);
|
||||
|
||||
const { setCollapsible } = useCollapsible();
|
||||
|
||||
const collapsible = useCollapsibleHeader({
|
||||
|
|
@ -58,6 +60,10 @@ function CollapsibleComponent(props: Props) {
|
|||
collapsedColor: headerColors ? headerColors : theme.colors.surface,
|
||||
useNativeDriver: true,
|
||||
},
|
||||
|
||||
navigationOptions: {
|
||||
headerStyle: { backgroundColor: theme.colors.surface },
|
||||
},
|
||||
});
|
||||
|
||||
useFocusEffect(
|
||||
|
|
|
|||
載入中…
新增問題並參考