The back event of the Android machine of the rn project

The button on the

page a can open moal,. When you leave page a, you need to close the open modal,
for advice. Now the problem is that both BackAndroid and BackHandler, are valid when modal is not open. I have used react-navigation, and tried addlistener to monitor willblur, but they are only valid when modal is not open.
I hope those with experience can share it. Thank you

.
Mar.03,2021
Menu