export const App = () => {
const [permissions, setPermissions] = useState({});
useEffect(() => {
PushNotificationIOS.addEventListener('notification', onRemoteNotification);
});
const onRemoteNotification = (notification) => {
const isClicked = notification.getData().userInteraction === 1;
if (isClicked) {
// Navigate user to another screen
} else {notificat
// Do something else with push ion
}
};
};