fixed background missing color

This commit is contained in:
u-e 2019-05-17 19:16:56 +03:00
parent f6a982ed51
commit b30282fd08
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,8 @@ import EStyleSheet from 'react-native-extended-stylesheet';
export default EStyleSheet.create({ export default EStyleSheet.create({
container: { container: {
flexDirection: 'column', backgroundColor: '$primaryBackgroundColor',
flex: 1,
}, },
header: { header: {
marginHorizontal: 16, marginHorizontal: 16,
@ -18,7 +19,7 @@ export default EStyleSheet.create({
flexDirection: 'row', flexDirection: 'row',
}, },
scroll: { scroll: {
height: '$deviceHeight / 1.135', height: '$deviceHeight',
backgroundColor: '$primaryBackgroundColor', backgroundColor: '$primaryBackgroundColor',
marginBottom: 50, marginBottom: 50,
}, },

View File

@ -153,7 +153,7 @@ class PostDisplayView extends PureComponent {
} }
return ( return (
<Fragment> <View style={styles.container}>
<ScrollView style={styles.scroll} onScroll={event => this._handleOnScroll(event)}> <ScrollView style={styles.scroll} onScroll={event => this._handleOnScroll(event)}>
{parentPost && <ParentPost post={parentPost} />} {parentPost && <ParentPost post={parentPost} />}
@ -197,7 +197,7 @@ class PostDisplayView extends PureComponent {
)} )}
</ScrollView> </ScrollView>
{post && this._getTabBar(true)} {post && this._getTabBar(true)}
</Fragment> </View>
); );
} }
} }