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:
the button should not sticked bottom, should appear @ bottom (if possible).
Comments
Post a Comment