Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onClick: () => {
navigator.handleDeepLink({
link: `democracy.Detail`,
payload: {
procedureId: `${procedureId}`,
from: 'pushNotification',
},
});
if (Platform.OS === 'android') {
NotificationsAndroid.cancelAllNotifications();
}
},
}, // simple serializable object that will pass as props to the in-app notification (optional)