Skip to content

Commit

Permalink
Merge pull request #2101 from Expensify/jasper-fixMobileScrolling
Browse files Browse the repository at this point in the history
Fix Mobile Web Scrolling in OptionsList
  • Loading branch information
Nicholas Murray authored Mar 26, 2021
2 parents 68e382c + 076c5a0 commit 7c1bb9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/OptionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,10 @@ class OptionsList extends Component {

render() {
return (
<View style={[styles.flex1]}>

// need to set a height (0 works in this case) so that the view will scroll on mobile
// NOTE: the view will still fill its container since it has flex: 1 on it
<View style={[styles.flex1, {height: 0}]}>
{this.props.headerMessage ? (
<View style={[styles.ph5, styles.pb5]}>
<Text style={[styles.textLabel, styles.colorMuted]}>
Expand Down

0 comments on commit 7c1bb9f

Please sign in to comment.