Skip to content

Commit

Permalink
Fixed display issues on Android
Browse files Browse the repository at this point in the history
Fixed bug where option list screen was always visible; this problem was caused by using position: absolute and display: none, which React Native does not like (see facebook/react-native#18415)

Added solid black background to header in OptionList, preventing overlay with list items
  • Loading branch information
elddc committed Dec 10, 2021
1 parent 978c35f commit d0bcadc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/optionlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Option = ({name, select}) => {

const OptionList = ({title, options, visible, dismiss, select}) => {
return (
<View style={[s.fullscreen, !visible && s.hidden]}>
<View style={visible ? s.fullscreen : s.hidden}>
<FlatList
style={{width: '100%'}}
data={options}
Expand Down
1 change: 1 addition & 0 deletions styles/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ let header = {
paddingBottom: .8*em,
borderBottomWidth: 2,
borderColor: 'white',
backgroundColor: 'black',
};
let headerText = {
...text,
Expand Down

0 comments on commit d0bcadc

Please sign in to comment.