React Native fixed footer

后端 未结 20 1564
南旧
南旧 2020-12-22 16:57

I try to create react native app that looks like existing web app. I have a fixed footer at bottom of window. Do anyone have idea how this can be achieved with react native?

20条回答
  •  抹茶落季
    2020-12-22 17:20

    When flex is a positive number, it makes the component flexible and it will be sized proportional to its flex value. So a component with flex set to 2 will take twice the space as a component with flex set to 1.

       
                
         
            //your scroll able content will be placed above your fixed footer content. 
            //when your content will grow bigger and bigger it will hide behind 
            //footer content. 
         
    
         
            //your fixed footer content will sit fixed below your screen 
         
    
    

提交回复
热议问题