Whenever I made the position style \'absolute\' for this view, it disappears. I have no idea why it is happening.
import React, { Component } from \'react\'; imp
It looks like z-index works from top to bottom.
Without setting the zIndex manually, your absolutely positioned component should be lower in order of appearance/line number in your code for it to layer over the content below it.
so
then
and not the other way around.