Skip to content

Commit

Permalink
change ScrollView to View
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 7, 2022
1 parent f18b762 commit f9d5851
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/pages/settings/Payments/PaymentsPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import {View} from 'react-native';
import {withOnyx} from 'react-native-onyx';
import PropTypes from 'prop-types';
import PaymentMethodList from './PaymentMethodList';
Expand Down Expand Up @@ -119,7 +120,7 @@ class PaymentsPage extends React.Component {
onBackButtonPress={() => Navigation.navigate(ROUTES.SETTINGS)}
onCloseButtonPress={() => Navigation.dismissModal(true)}
/>
<ScrollView style={styles.flex1}>
<View style={styles.flex1}>
{
Permissions.canUseWallet(this.props.betas) && <CurrentWalletBalance />
}
Expand All @@ -134,7 +135,7 @@ class PaymentsPage extends React.Component {
isLoadingPayments={this.props.isLoadingPaymentMethods}
isAddPaymentMenuActive={this.state.shouldShowAddPaymentMenu}
/>
</ScrollView>
</View>
<AddPaymentMethodMenu
isVisible={this.state.shouldShowAddPaymentMenu}
onClose={this.hideAddPaymentMenu}
Expand Down

0 comments on commit f9d5851

Please sign in to comment.