components/common/header.js
// TODO: fix the header printing in the status bar 
fix the header printing in the status bar
fix the header printing in the status bar
function Header(props) {
	const currentBoard = useContext(CurrentBoardContext);
	console.log('curBord', currentBoard);
	return (
    <View style={styles.container}>
      <TouchableWithoutFeedback
        onPress={() => {
          console.log("open hamburger");
        }}
      >
        <Text style={styles.hamburger}>
          <MaterialCommunityIcons
            name="forwardburger"
            size={50}
            color={appStyles.WarningColor}
          />
        </Text>
      </TouchableWithoutFeedback>
      <Text style={styles.headerText}>
        {props.headerDisplay ? props.headerDisplay : currentBoard}
      </Text>
    </View>
  );
}
function Header ( props ) { const currentBoard = useContext ( CurrentBoardContext ) ; console . log ( 'curBord' , currentBoard ) ; return ( < View style = { styles . container } > < TouchableWithoutFeedback onPress = { ( ) => { console . log ( "open hamburger" ) ; } } > < Text style = { styles . hamburger } > < MaterialCommunityIcons name = "forwardburger" size = { 50 } color = { appStyles . WarningColor } / > < / Text > < / TouchableWithoutFeedback > < Text style = { styles . headerText } > { props . headerDisplay ? props . headerDisplay : currentBoard } < / Text > < / View > ) ; }
TODO: fix the header printing in the status bar
TODO : fix the header printing in the status bar