In React Native, how do I put a view on top of another view, with part of it lying outside the bounds of the view behind?

前端 未结 7 897
一向
一向 2020-12-23 18:50

I\'m trying to make a layout as per below with React Native.

\"enter

How do I

7条回答
  •  情话喂你
    2020-12-23 19:19

    The above solutions were not working for me. I solved it by creating a View with the same background colour as the parent and added negative margin to move the image upwards.

    
      
        
    
          
          Some Text
        
      
    
    

    and I got the following result.

提交回复
热议问题