You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem
AppComponent (part of AppRegistry) wraps the app in a View. This view as a style of flex: 1. However, even if the root div in the HTML is set to height 100%, the react app does not render to the full height of the screen. If you change the AppComponent style to width: '100%', height: '100%' the react app renders as expected.
I would recommend manually adding it to your rootContainer and/or wrapping your app with another view that replicates those styles.
Absolute fill solution is the least fragile as then you do not need to make sure height: 100% is properly respected all the way down from <html /> to your root component
@necolas thank you! You are a wizard.... I not only greatly appreciate all you do for RNW, but for taking the time to solve this incredibly simple problem for me!!
The problem
AppComponent (part of AppRegistry) wraps the app in a View. This view as a style of
flex: 1
. However, even if the root div in the HTML is set to height 100%, the react app does not render to the full height of the screen. If you change the AppComponent style towidth: '100%', height: '100%'
the react app renders as expected.How to reproduce
Test case: https://codesandbox.io/s/kml4ojq27o
Steps to reproduce:
Current Render:
Expected behavior
The rendered app should consume the space allotted to the root div.
Environment (include versions). Did this work in previous versions?
Yes, this did work on 0.2.2 (we just updated to 0.6.1
Additional context
N/A
The text was updated successfully, but these errors were encountered: