Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/IOUConfirmationList.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,10 @@ class IOUConfirmationList extends Component {

render() {
return (
<View style={[styles.flex1, styles.w100]}>
<View style={[styles.flex1, styles.w100, styles.justifyContentBetween]}>
<View style={[styles.flex1]}>
<OptionsList
listContainerStyles={[styles.flexGrow0]}
sections={this.getSections()}
disableArrowKeysActions
hideAdditionalOptionStates
Expand Down
6 changes: 5 additions & 1 deletion src/components/OptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ const propTypes = {
// option Background Color
optionBackgroundColor: PropTypes.string,

// option flexStyle for the options list container
listContainerStyles: PropTypes.arrayOf(PropTypes.object),

// Style for hovered state
// eslint-disable-next-line react/forbid-prop-types
optionHoveredStyle: PropTypes.object,
Expand Down Expand Up @@ -77,6 +80,7 @@ const defaultProps = {
optionBackgroundColor: undefined,
optionHoveredStyle: undefined,
contentContainerStyles: [],
listContainerStyles: [styles.flex1],
sections: [],
focusedIndex: 0,
selectedOptions: [],
Expand Down Expand Up @@ -196,7 +200,7 @@ class OptionsList extends Component {

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