File tree 3 files changed +257
-75
lines changed
3 files changed +257
-75
lines changed Original file line number Diff line number Diff line change @@ -226,11 +226,11 @@ class App extends Component {
226
226
/>
227
227
</ View >
228
228
</ View >
229
- < View style = { styles . margin } >
229
+ < View >
230
230
< Button onPress = { this . setAlarm } title = "Set Alarm" color = "#007fff" />
231
231
</ View >
232
232
</ View >
233
- < View >
233
+ < View style = { styles . margin } >
234
234
< Text > Alarm Time From Now (in minutes):</ Text >
235
235
< TextInput
236
236
style = { styles . date }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ - (void)userNotificationCenter:(UNUserNotificationCenter *)center
58
58
willPresentNotification : (UNNotification *)notification withCompletionHandler : (void (^)(UNNotificationPresentationOptions options))completionHandler {
59
59
NSLog (@" handle push notification: %@ " , notification.request .content .userInfo );
60
60
[RnAlarmNotification didReceiveNotification: notification];
61
- completionHandler (UNAuthorizationOptionSound | UNAuthorizationOptionAlert | UNAuthorizationOptionBadge );
61
+ completionHandler (UNNotificationPresentationOptionBadge | UNNotificationPresentationOptionSound | UNNotificationPresentationOptionAlert );
62
62
}
63
63
64
64
- (void )userNotificationCenter : (UNUserNotificationCenter *)center
You can’t perform that action at this time.
0 commit comments