import RX = require('reactxp'); interface ContentPanelProps { onToggleDrawer: () => void; } const styles = { container: RX.Styles.createViewStyle({ flex: 1, alignSelf: 'stretch', backgroundColor: 'red' }), drawerText: RX.Styles.createTextStyle({ fontSize: 16, textAlign: 'center', marginTop: 12, color: 'black' }), scroll: RX.Styles.createScrollViewStyle({ alignSelf: 'stretch', backgroundColor: 'red', flex: 1 }) }; export default class ContentPanel extends RX.Component { render() { return ( H 1. This content panel has red background that should fill screen, but does not even with flex: 1 on container 2. This in turn affects the drawer height to not fill the entire available height 3. My animation does not seem to be smooth, especially on the first click ); } }