Skip to content

Commit 1280393

Browse files
authored
Make getEvents less restrictive (#55)
* Add more notification actions and multiple shield actions * chore: update version * make it more flexible, add addCurrentToWhitelist to generic actions * chore: update version * add removeAllDeliveredNotifications, type for addCurrentToWhitelist * chore: update version * make getEvents less restrictive, allowing any events starting with the right keys * chore: update version
1 parent 268550e commit 1280393

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-native-device-activity/ios/ReactNativeDeviceActivityModule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public class ReactNativeDeviceActivityModule: Module {
353353
}
354354

355355
let filteredDict = actualDict.filter({ (key: String, _: Any) in
356-
return key.starts(with: activityName == nil ? "events_" : "events_\(activityName!)_")
356+
return key.starts(with: activityName == nil ? "events_" : "events_\(activityName!)")
357357
}).reduce(into: [:]) { (result, element) in
358358
let (key, value) = element
359359
result[key] = value as? NSNumber // Add key-value pair to the result dictionary

packages/react-native-device-activity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-device-activity",
3-
"version": "0.4.27",
3+
"version": "0.4.28",
44
"description": "Provides access to Apples DeviceActivity API",
55
"main": "build/index.js",
66
"types": "build/index.d.ts",

0 commit comments

Comments
 (0)