flexbox - React-Native fixed Footer within ScrollView? -


i create views dynamic content should have kind of footer should (if there enough space) sticked bottom.

before introduced scrollviews code looked this:

<view style={{flex: 1, justifycontent: 'space-between'}}>   <view>{content}</view>   <view>{stickyfooter}</view> </view> 

after introducing scrollview had remove flex: 1 because otherwise scrollview not scrollable @ all. after justifycontent became useless because height of flex-container not set 100%. therefore both views appear next each other.

to make clear view should in general:

enter image description here

the button should not sticked bottom, should appear @ bottom (if possible).


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -