Automated cherry pick of #4067 (#4071)

* Add backgroundColor

* Revert backgroundColor and set elevation instead

Co-authored-by: Miguel Alatzar <this.migbot@gmail.com>
Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Mattermost Build 2020-03-24 17:43:12 +01:00 committed by GitHub
parent fe477f68d5
commit b830b8ec93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 3 deletions

View file

@ -412,8 +412,15 @@ const styles = StyleSheet.create({
container: {
height: HEIGHT,
width: '100%',
zIndex: 9,
position: 'absolute',
...Platform.select({
android: {
elevation: 9,
},
ios: {
zIndex: 9,
},
}),
},
wrapper: {
alignItems: 'center',

View file

@ -40,7 +40,6 @@ export default class ChannelAndroid extends ChannelBase {
const drawerContent = (
<>
<NetworkIndicator/>
<ChannelNavBar
openMainSidebar={this.openMainSidebar}
openSettingsSidebar={this.openSettingsSidebar}
@ -55,6 +54,7 @@ export default class ChannelAndroid extends ChannelBase {
screenId={this.props.componentId}
/>
</KeyboardLayout>
<NetworkIndicator/>
{LocalConfig.EnableMobileClientUpgrade && <ClientUpgradeListener/>}
</>
);

View file

@ -130,7 +130,14 @@ const getStyleFromTheme = makeStyleSheetFromTheme((theme) => {
flexDirection: 'row',
justifyContent: 'flex-start',
width: '100%',
zIndex: 10,
...Platform.select({
android: {
elevation: 10,
},
ios: {
zIndex: 10,
},
}),
},
};
});