We have a FilterComponent that displays Modal, but on the iPhone X Header is in the Statusbar.
I tried displaying it using SafeAreaView, but it doesn't seem to work:
return (
<SafeAreaView>
<Modal
{ ...defaultModalProps }
onRequestClose={ close }
style={ styles.container }
visible={ visible }
>
<ModalNavbar close={ close }>
Filter
</ModalNavbar>
<View style={ styles.content }>
...
</View>
</Modal>
</SafeAreaView>
);
When FilterModal is open on iPhoneX, it is still in the status bar and you cannot click on anything.
Any idea how to solve this?
thank.
source
share