Property 'HEIGHT' does not exist on type 'NamedExoticComponent<StackHeaderProps>'

Viewed 285

I am trying to use Header.HEIGHT from react-navigation-stack for the react-navigation header height calculation but as soon as I upgraded my react-native version from 0.59 to 0.61, I am getting some linting issues on typescript

issue: Property 'HEIGHT' does not exist on type 'NamedExoticComponent' issue in code: const headerHeight = Header.HEIGHT

Not sure how to fix it.

0 Answers
Related