forked from vergnet/application-amicale
		
	fix header darkmode not changing
This commit is contained in:
		
							parent
							
								
									acbbd2d27d
								
							
						
					
					
						commit
						19f6dd3cf0
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -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( | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue