Skip to content

Commit

Permalink
Merge pull request Expensify#29617 from ahmedGaber93/issue-28145
Browse files Browse the repository at this point in the history
add bottom safe area padding on the EditRequestReceiptPage.
  • Loading branch information
NikkiWines authored Oct 16, 2023
2 parents 8e6a74c + c795517 commit 2404352
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions src/pages/EditRequestReceiptPage.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React, {useState} from 'react';
import PropTypes from 'prop-types';
import {View} from 'react-native';
import ScreenWrapper from '../components/ScreenWrapper';
import HeaderWithBackButton from '../components/HeaderWithBackButton';
import Navigation from '../libs/Navigation/Navigation';
Expand Down Expand Up @@ -40,17 +41,21 @@ function EditRequestReceiptPage({route, transactionID}) {
testID={EditRequestReceiptPage.displayName}
headerGapStyles={isDraggingOver ? [styles.receiptDropHeaderGap] : []}
>
<DragAndDropProvider setIsDraggingOver={setIsDraggingOver}>
<HeaderWithBackButton
title={translate('common.receipt')}
onBackButtonPress={Navigation.goBack}
/>
<ReceiptSelector
route={route}
transactionID={transactionID}
isInTabNavigator={false}
/>
</DragAndDropProvider>
{({safeAreaPaddingBottomStyle}) => (
<DragAndDropProvider setIsDraggingOver={setIsDraggingOver}>
<View style={[styles.flex1, safeAreaPaddingBottomStyle]}>
<HeaderWithBackButton
title={translate('common.receipt')}
onBackButtonPress={Navigation.goBack}
/>
<ReceiptSelector
route={route}
transactionID={transactionID}
isInTabNavigator={false}
/>
</View>
</DragAndDropProvider>
)}
</ScreenWrapper>
);
}
Expand Down

0 comments on commit 2404352

Please sign in to comment.