react-native-magic-modal icon indicating copy to clipboard operation
react-native-magic-modal copied to clipboard

Backdrop fills on half in landscape orientation

Open xdarkleonx opened this issue 1 year ago • 0 comments

In portrait orientation backdrop covers all width and works fine, but when you change to landscape backdrop is covering half.

Screenshot_16940

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.

xdarkleonx avatar Sep 07 '23 10:09 xdarkleonx