ptomasroos / react-native-tab-navigator

A tab bar that switches between scenes, written in JS for cross-platform support
MIT License
2.4k stars 415 forks source link

how to cover a layer on tabar in child Component? #113

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hi.

I need cover a layer on whole screen, this is the style code

position: 'absolute', zIndex: 100, left: 0, right: 0, top: 0, backgroundColor: 'rgba(0,0,0,0.4)', height: common.window.height,

but, i find the tabbar on the top of the layer, how i can cover the layer on the top of the tabbar?

thank!

ide commented 7 years ago

You can't do this with child components, you need to write your code like this:

<View>
  <TabNavigator />
  <LayerView style={{ position: 'absolute' }} />
</View>