Check out example codes for "how to clear position fixed". It will help you in understanding the concepts better.

Code Example 1

#fixed-menu
{
    position: fixed;
    width: 100%;
    height: 75px;
    background-color: #f00;
    padding: 10px;
}

.spacer
{
    width: 100%;
    height: 95px;
}

Learn ReactJs, React Native from akashmittal.com