Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1305

React Native - Sticky footer at the bottom of container

$
0
0

I'm trying to make a <View> called footer stick at the bottom of the right container.

Here is a live example:
https://rnplay.org/apps/G3rHqQ

If I make the left container higher than the right one then it won't work. If the right container is higher than the left one then it works....

enter image description here

The red and orange elements are dynamic, have different height depending on their content. The blue one, instead, should always stick to the bottom of the right container.

I have also tried with position: 'absolute'; bottom:0; left: 0; right: 0; and it does stick to the bottom but only IF the right container is higher than the left one.


Viewing all articles
Browse latest Browse all 1305

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>