Skip to content

Commit

Permalink
Merge pull request #5891 from parasharrajat/bottomEdgeFix
Browse files Browse the repository at this point in the history
Fix: list is cut off at bottom in LHN
  • Loading branch information
iwiznia authored Oct 20, 2021
2 parents 1ff4397 + 2b23568 commit f4c7d98
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/components/Modal/index.ios.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import React from 'react';
import {SafeAreaView} from 'react-native';
import withWindowDimensions from '../withWindowDimensions';
import BaseModal from './BaseModal';
import {propTypes, defaultProps} from './ModalPropTypes';

// Only want to use <SafeAreaView> on iOS. Avoids ScrollBar in the middle of the modal.
// https://github.com/facebook/react-native/issues/26610
const Modal = props => (
<SafeAreaView>
<BaseModal
<BaseModal
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
>
{props.children}
</BaseModal>
</SafeAreaView>

{...props}
>
{props.children}
</BaseModal>
);

Modal.propTypes = propTypes;
Expand Down

0 comments on commit f4c7d98

Please sign in to comment.