Skip to content

Commit

Permalink
add bottom safe area padding on the EditRequestReceiptPage.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedGaber93 committed Oct 14, 2023
1 parent fe282b4 commit 1e5672a
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}>
<HeaderWithBackButton
title={translate('common.receipt')}
onBackButtonPress={Navigation.goBack}
/>
<View style={[styles.flex1, safeAreaPaddingBottomStyle]}>
<ReceiptSelector
route={route}
transactionID={transactionID}
isInTabNavigator={false}
/>
</View>
</DragAndDropProvider>
)}
</ScreenWrapper>
);
}
Expand Down

0 comments on commit 1e5672a

Please sign in to comment.