fix uri bar z-index and overlay

This commit is contained in:
Akinwale Ariwodola 2019-04-02 21:42:07 +01:00
parent 0282619643
commit 5f549b8a2e
2 changed files with 6 additions and 4 deletions

View file

@ -101,11 +101,11 @@ class UriBar extends React.PureComponent {
}
let style = [uriBarStyle.overlay];
if (this.state.focused) {
/*if (this.state.focused) {
style.push(uriBarStyle.inFocus);
}
/*{(this.state.focused && !this.state.directSearch) && (
{(this.state.focused && !this.state.directSearch) && (
<View style={uriBarStyle.suggestions}>
<FlatList style={uriBarStyle.suggestionList}
data={suggestions}

View file

@ -30,9 +30,11 @@ const uriBarStyle = StyleSheet.create({
},
overlay: {
position: 'absolute',
backgroundColor: 'transparent',
backgroundColor: '#cc0000',
top: 0,
width: '100%'
width: '100%',
zIndex: 200,
elevation: 16
},
inFocus: {
height: '100%'