Check out example codes for "css make something always on top". It will help you in understanding the concepts better.

Code Example 1

element {
    position: fixed;
    z-index: 999;
}

Learn ReactJs, React Native from akashmittal.com