Transparent overlay in React Native

后端 未结 6 1568
陌清茗
陌清茗 2020-12-23 13:38

I\'m trying to get a transparent overlay sliding down in an app, pretty much like this here (all/filter-by):

\"t

6条回答
  •  感动是毒
    2020-12-23 14:07

    I was having same problem I did it this way.

    import {View,StyleSheet} from "react-native";
    //where you want it to render
     
          Locating directions please wait ...        
      
    // at the bottom of your in styles
    const styles = StyleSheet.create({
      overlaycontainer:{
        ...StyleSheet.absoluteFillObject,
        backgroundColor: '#000',
        opacity:0.8,
        justifyContent:"center",
        alignItems:"center" 
      }
    });
    

提交回复
热议问题