Skip to content

Commit

Permalink
Merge pull request #26042 from b4s36t4/fix/remove-nested-wrapper
Browse files Browse the repository at this point in the history
remove screenwrapper causing extra padding in large devices
  • Loading branch information
Hayata Suenaga authored Aug 28, 2023
2 parents c7bdc81 + 6afe54f commit c7c538f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/DistanceRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import useLocalize from '../hooks/useLocalize';
import Navigation from '../libs/Navigation/Navigation';
import ROUTES from '../ROUTES';
import transactionPropTypes from './transactionPropTypes';
import ScreenWrapper from './ScreenWrapper';
import DotIndicatorMessage from './DotIndicatorMessage';
import * as ErrorUtils from '../libs/ErrorUtils';
import usePrevious from '../hooks/usePrevious';
Expand Down Expand Up @@ -139,7 +138,7 @@ function DistanceRequest({transactionID, transaction, mapboxAccessToken}) {
useEffect(updateGradientVisibility, [scrollContainerHeight, scrollContentHeight]);

return (
<ScreenWrapper shouldEnableMaxHeight>
<>
<View
style={styles.distanceRequestContainer(scrollContainerMaxHeight)}
onLayout={(event = {}) => setScrollContainerHeight(lodashGet(event, 'nativeEvent.layout.height', 0))}
Expand Down Expand Up @@ -231,7 +230,7 @@ function DistanceRequest({transactionID, transaction, mapboxAccessToken}) {
</View>
)}
</View>
</ScreenWrapper>
</>
);
}

Expand Down

0 comments on commit c7c538f

Please sign in to comment.