Setting component height to 100% in react-native

后端 未结 7 1961
终归单人心
终归单人心 2021-01-31 14:29

I can give the height element of style numeric values such as 40 but these are required to be integers. How can I make my component to have a height of 100%

7条回答
  •  忘了有多久
    2021-01-31 14:52

    Try this:

      
        
      
    

    You can have more help in react-native online documentation (https://facebook.github.io/react-native/docs/height-and-width).

提交回复
热议问题