how ot handle onclick push notificaiton in react native push notification when app is closed code example
Example 1: how to add button in alert box in react native
// Works on both Android and iOS
Alert.alert(
'Alert Title',
'My Alert Msg',
[
{text: 'Ask me later', onPress: () => console.log('Ask me later pressed')},
{
text: 'Cancel',
onPress: () => console.log('Cancel Pressed'),
style: 'cancel',
},
{text: 'OK', onPress: () => console.log('OK Pressed')},
],
{cancelable: false},
);
Example 2: how to open new form on button click in c# xamarin
private void button1Click(object sender, EventArgs e)
{
App.Current.MainPage = new settings();
}