Skip to content

Commit eb1f059

Browse files
committed
1.4.0
1 parent d73193f commit eb1f059

File tree

3 files changed

+42
-26
lines changed

3 files changed

+42
-26
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog of `@reason-react-native/push-notification-ios`
22

3+
## 1.4.0 - 2020-09-11
4+
5+
💥We switched to record instead of Js.t for results.
6+
7+
- Fixed finish/FetchResult binding [#3](https://github.com/reason-react-native/push-notification-ios/pull/3) by [@cknitt](https://github.com/cknitt)
8+
- Added missing alertTitle & repeatInterval for formatted local notification (1.2.1) [cb6e76d](https://github.com/reason-react-native/push-notification-ios/commit/cb6e76d) by [@MoOx](https://github.com/MoOx)
9+
- Added support for checking if lockScreen and notificationCenter settings [3e69440](https://github.com/reason-react-native/push-notification-ios/commit/3e69440) [ef7bfb1](https://github.com/reason-react-native/push-notification-ios/commit/ef7bfb1) by [@MoOx](https://github.com/MoOx)
10+
- Added method getTitle to get notification title in JS (1.4.0) [277dec8](https://github.com/reason-react-native/push-notification-ios/commit/277dec8) by [@MoOx](https://github.com/MoOx)
11+
- Switched to record instead of Js.t for results [259d995](https://github.com/reason-react-native/push-notification-ios/commit/259d995) by [@MoOx](https://github.com/MoOx)
12+
313
## 1.0.7 - 2020-01-31
414

515
Fix peer dependency package name.

README.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -88,51 +88,51 @@ external localNotification:
8888

8989
```reason
9090
type deliveredNotification = {
91-
.
92-
"identifier": string,
93-
"date": Js.Nullable.t(string),
94-
"title": Js.Nullable.t(string),
95-
"body": Js.Nullable.t(string),
96-
"category": Js.Nullable.t(string),
97-
"thread-id": Js.Nullable.t(string),
98-
"userInfo": Js.Nullable.t(Js.Json.t),
91+
identifier: string
92+
date: option(string)
93+
title: option(string)
94+
body: option(string)
95+
category: option(string)
96+
threadId: option(string)
97+
userInfo: option(Js.Json.t),
9998
};
10099
```
101100

102101
#### `ReactNativePushNotificationIOS.formattedLocalNotification`
103102

104103
```reason
105104
type formattedLocalNotification = {
106-
.
107-
"fireDate": Js.Nullable.t(string),
108-
"alertAction": Js.Nullable.t(string),
109-
"alertBody": Js.Nullable.t(string),
110-
"applicationIconBadgeNumber": Js.Nullable.t(int),
111-
"category": Js.Nullable.t(string),
112-
"soundName": Js.Nullable.t(string),
113-
"userInfo": Js.Nullable.t(Js.Json.t),
105+
fireDate: option(string),
106+
alertAction: option(string),
107+
alertTitle: option(string),
108+
alertBody: option(string),
109+
applicationIconBadgeNumber: option(int),
110+
category: option(string),
111+
repeatInterval: option(string),
112+
soundName: option(string),
113+
userInfo: option(Js.Json.t),
114114
};
115115
```
116116

117117
#### `ReactNativePushNotificationIOS.registrationError`
118118

119119
```reason
120120
type registrationError('a) = {
121-
.
122-
"message": string,
123-
"code": int,
124-
"details": Js.t('a),
121+
message: string,
122+
code: int,
123+
details: Js.t('a),
125124
};
126125
```
127126

128127
#### `ReactNativePushNotificationIOS.permissions`
129128

130129
```reason
131130
type permissions = {
132-
.
133-
"alert": bool,
134-
"badge": bool,
135-
"sound": bool,
131+
alert: bool,
132+
badge: bool,
133+
sound: bool,
134+
lockScreen: bool,
135+
notificationCenter: bool,
136136
};
137137
```
138138

@@ -166,6 +166,12 @@ external fetchResult:
166166
Notification.t => option(Js.Json.t)
167167
```
168168

169+
#### `ReactNativePushNotificationIOS.Notification.getTitle`
170+
171+
```reason
172+
Notification.t => option(string)
173+
```
174+
169175
#### `ReactNativePushNotificationIOS.Notification.getMessage`
170176

171177
```reason

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@reason-react-native/push-notification-ios",
3-
"version": "1.0.7",
3+
"version": "1.4.0",
44
"publishConfig": {
55
"access": "public"
66
},
77
"peerDependencies": {
8-
"@react-native-community/push-notification-ios": "^1.0.5"
8+
"@react-native-community/push-notification-ios": "^1.4.0"
99
},
1010
"repository": "https://github.com/reason-react-native/push-notification-ios.git",
1111
"license": "MIT",

0 commit comments

Comments
 (0)