Check out example codes for "get height of navigation bar swift". It will help you in understanding the concepts better.

Code Example 1

let navigationBarHeight: CGFloat = self.navigationController!.navigationBar.frame.height

Learn ReactJs, React Native from akashmittal.com