react-native-magic-modal
react-native-magic-modal copied to clipboard
Backdrop fills on half in landscape orientation
In portrait orientation backdrop covers all width and works fine, but when you change to landscape backdrop is covering half.
modalConfig = {
animationIn: 'fadeIn',
animationOut: 'fadeOut',
coverScreen: false,
swipeDirection: null,
}
magicModal.show(
<ActionMenu
style={mainLayout.modal}
label={t('diaryMenu')}
items={actions}
dayItems={fastInsertItems}
onValueChange={() => magicModal.hide()}
/>
, modalConfig
)
I found workaround and add deviceWidth to modalConfig. But i think it should be work without setting manually width to modal.