Skip to content

Commit

Permalink
Make code simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
barun1997 committed Apr 16, 2021
1 parent a566465 commit 0cec32a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/OptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const defaultProps = {
optionBackgroundColor: undefined,
optionHoveredStyle: undefined,
contentContainerStyles: [],
listContainerStyles: undefined,
listContainerStyles: [styles.flex1],
sections: [],
focusedIndex: 0,
selectedOptions: [],
Expand Down Expand Up @@ -200,7 +200,7 @@ class OptionsList extends Component {

render() {
return (
<View style={[...(this.props.listContainerStyles ? this.props.listContainerStyles : [styles.flex1])]}>
<View style={[this.props.listContainerStyles]}>
{this.props.headerMessage ? (
<View style={[styles.ph5, styles.pb5]}>
<Text style={[styles.textLabel, styles.colorMuted]}>
Expand Down

0 comments on commit 0cec32a

Please sign in to comment.