Skip to content

Commit

Permalink
fix: bottom list is cut off in LHN
Browse files Browse the repository at this point in the history
  • Loading branch information
parasharrajat committed Oct 15, 2021
1 parent 7969ee4 commit 66f269a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/components/Modal/index.ios.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,17 @@
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 66f269a

Please sign in to comment.