Skip to content

Commit

Permalink
Merge pull request #26728 from allroundexperts/fix-26541
Browse files Browse the repository at this point in the history
fix: wrap distance request inside scrollable view
  • Loading branch information
Hayata Suenaga authored Sep 5, 2023
2 parents 8150ce0 + db76cf2 commit f67bf9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DistanceRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function DistanceRequest({iou, iouType, report, transaction, mapboxAccessToken})
useEffect(updateGradientVisibility, [scrollContainerHeight, scrollContentHeight]);

return (
<>
<ScrollView contentContainerStyle={styles.flex1}>
<View
style={styles.distanceRequestContainer(scrollContainerMaxHeight)}
onLayout={(event = {}) => setScrollContainerHeight(lodashGet(event, 'nativeEvent.layout.height', 0))}
Expand Down Expand Up @@ -266,7 +266,7 @@ function DistanceRequest({iou, iouType, report, transaction, mapboxAccessToken})
isDisabled={_.size(validatedWaypoints) < 2}
text={translate('common.next')}
/>
</>
</ScrollView>
);
}

Expand Down

0 comments on commit f67bf9f

Please sign in to comment.