I have problem with react-native-Notifier. I am trying to show notification using Notifier. If there are any better libraries, you can recommend. My problem is with the notch on the phone. By the time notification is showing up, it’s hidden by notch.
https://phpout.com/wp-content/uploads/2024/02/oXvMo.png
And code snippet. How can I solve this ?
Notifier.showNotification({
title: "Error",
description: message,
Component: NotifierComponents.Alert,
showEasing: Easing.bounce,
componentProps:{
alertType: "error",
},
containerStyle:{
},
duration: 4000,
showAnimationDuration: 800,
});
2
Answers
Found an solution. If somebody will have same problem just use
CustomSafeAreaView
as a part of ContainerComponent.Use prop
translucentStatusBar={true}
in options, It adds additional top padding that equals to StatusBar.currentHeight. (Android Only)Hope it works, or you can consider this react-native-flash-message