react-native -v
: 0.55npm ls rnpm-plugin-windows
:npm ls react-native-windows
: 0.55node -v
:npm -v
:yarn --version
:Then, specify:
The Layout is not drawn correctly if View contains fixed 'width/height' and 'flexDirection:row' style properties.
Sample code:
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
export default class App extends Component<{}> {
render () {
return (
<View style={{ flex: 1, backgroundColor: 'skyblue' }}>
<View style={{ width: '100%', height: 50, flexDirection: 'row', alignItems: 'center', backgroundColor: 'blue' }}>
<Text>FIRST</Text>
<Text>SECOND</Text>
</View >
</View >
)
}
}
Following steps to reproduce problem:
I expect the View layout should drawn correctly in full screen mode. This way it works in WPF.
(Write what you thought would happen.)
View layout is not drawn in full screen mode, if the View style property contains fixed height/width and flexDirection: row.
(Write what happened. Add screenshots!)
(Paste the link to an example project and exact instructions to reproduce the issue.)
@rozele I debugged this issue, the layout width and height are set correctly but seems like background color is not filled to whole view when app screen size changes for this case.
As a workaroudn: If a rerender (through state) is forced it's getting drawn correctly I think
This looks like a similar problem: #1675
Might be worthwhile checking out if #2050 fixes these issues.
Closing, if not fixed by #2050, please let me know and we can open a new issue.
Most helpful comment
This looks like a similar problem: #1675