Closed premasagar closed 9 years ago
Interesting use case! Care to try your hand at a pull request?
OK, sure.
Done: https://github.com/brentvatne/react-native-modal/pull/17
I went with allowing the low-level pointerEvents
property itself, as there may be use cases for one value or another.
Hi. Thanks for this module. For my use case, I am overriding
styles.modal
so that the modal body container is transparent and fills the view:{position:'absolute', left:0, right:0, top:0, bottom:0}
. I have buttons inside the container. The problem I have is that I needpointerEvents="box-none"
set on the modal body container, so that touch events pass through, to allow a backdropPress to close the modal.The
renderBody()
method could usethis.props.modalPointerEvents
or maybe better, check for a flag likethis.props.hideModalContainer
.