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? -


i'm trying make layout per below react native.

enter image description here

how specify position of b relative a?

with ios interface builder , autoconstraints, can explicitly done , breeze. it's not obvious how 1 might achieve react native.

add following "floating" view

position: 'absolute' 

you may need add top , left value positioning

see example: https://rnplay.org/apps/ojzcxq/edit


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -