Skip to content

Commit abdd3cd

Browse files
committed
ReScript
1 parent d6dd52d commit abdd3cd

10 files changed

+431
-485
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ node_modules
99
# npm unused lock file (we use yarn.lock)
1010
package-lock.json
1111

12-
# ReScript / Reason / Ocaml artifacts
13-
#*.bs.js # we do want this files to ensure zero-cost
12+
# ReScript artifacts
13+
# *.bs.js # we do want this files to ensure zero-cost
1414
.bsb.lock
1515
**/lib/bs
1616
**/lib/ocaml

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Changelog of `@reason-react-native/push-notification-ios`
1+
# Changelog of `@rescript-react-native/push-notification-ios`
22

33
## 1.7.2 - 2021-02-16
44

@@ -17,11 +17,11 @@ Fix npm description
1717

1818
💥 We switched to record instead of Js.t for results.
1919

20-
- Fixed finish/FetchResult binding [#3](https://github.com/reason-react-native/push-notification-ios/pull/3) by [@cknitt](https://github.com/cknitt)
21-
- 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)
22-
- 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)
23-
- 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)
24-
- 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)
20+
- Fixed finish/FetchResult binding [#3](https://github.com/rescript-react-native/push-notification-ios/pull/3) by [@cknitt](https://github.com/cknitt)
21+
- Added missing alertTitle & repeatInterval for formatted local notification (1.2.1) [cb6e76d](https://github.com/rescript-react-native/push-notification-ios/commit/cb6e76d) by [@MoOx](https://github.com/MoOx)
22+
- Added support for checking if lockScreen and notificationCenter settings [3e69440](https://github.com/rescript-react-native/push-notification-ios/commit/3e69440) [ef7bfb1](https://github.com/rescript-react-native/push-notification-ios/commit/ef7bfb1) by [@MoOx](https://github.com/MoOx)
23+
- Added method getTitle to get notification title in JS (1.4.0) [277dec8](https://github.com/rescript-react-native/push-notification-ios/commit/277dec8) by [@MoOx](https://github.com/MoOx)
24+
- Switched to record instead of Js.t for results [259d995](https://github.com/rescript-react-native/push-notification-ios/commit/259d995) by [@MoOx](https://github.com/MoOx)
2525

2626
## 1.0.7 - 2020-01-31
2727

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 @reason-react-native contributors
3+
Copyright (c) 2019 @rescript-react-native contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# `@reason-react-native/push-notification-ios`
1+
# `@rescript-react-native/push-notification-ios`
22

3-
[![Build Status](https://github.com/reason-react-native/push-notification-ios/workflows/Build/badge.svg)](https://github.com/reason-react-native/push-notification-ios/actions)
4-
[![Version](https://img.shields.io/npm/v/@reason-react-native/push-notification-ios.svg)](https://www.npmjs.com/@reason-react-native/push-notification-ios)
5-
[![Chat](https://img.shields.io/discord/235176658175262720.svg?logo=discord&colorb=blue)](https://reasonml-community.github.io/reason-react-native/discord/)
3+
[![Build Status](https://github.com/rescript-react-native/push-notification-ios/workflows/Build/badge.svg)](https://github.com/rescript-react-native/push-notification-ios/actions)
4+
[![Version](https://img.shields.io/npm/v/@rescript-react-native/push-notification-ios.svg)](https://www.npmjs.com/@rescript-react-native/push-notification-ios)
5+
[![ReScript Forum](https://img.shields.io/discourse/posts?color=e6484f&label=ReScript%20Forum&server=https%3A%2F%2Fforum.rescript-lang.org)](https://forum.rescript-lang.org/)
66

7-
[ReScript](https://rescript-lang.org) / [Reason](https://reasonml.github.io) bindings for
7+
[ReScript](https://rescript-lang.org) bindings for
88
[`@react-native-community/react-native-push-notification-ios`](https://github.com/react-native-push-notification-ios/push-notification-ios).
99

1010
Exposed as `ReactNativePushNotificationIOS` module.
1111

12-
`@reason-react-native/push-notification-ios` X.y.\* means it's compatible with
12+
`@rescript-react-native/push-notification-ios` X.y.\* means it's compatible with
1313
`@react-native-community/react-native-push-notification-ios` X.y.\*
1414

1515
## Installation
@@ -20,22 +20,22 @@ is properly installed & configured by following their installation instructions,
2020
you can install the bindings:
2121

2222
```console
23-
npm install @reason-react-native/push-notification-ios
23+
npm install @rescript-react-native/push-notification-ios
2424
# or
25-
yarn add @reason-react-native/push-notification-ios
25+
yarn add @rescript-react-native/push-notification-ios
2626
```
2727

28-
`@reason-react-native/push-notification-ios` should be added to
28+
`@rescript-react-native/push-notification-ios` should be added to
2929
`bs-dependencies` in your `bsconfig.json`:
3030

3131
```diff
3232
{
3333
//...
3434
"bs-dependencies": [
35-
"reason-react",
36-
"reason-react-native",
35+
"@rescript/react",
36+
"rescript-react-native",
3737
// ...
38-
+ "@reason-react-native/push-notification-ios"
38+
+ "@rescript-react-native/push-notification-ios"
3939
],
4040
//...
4141
}
@@ -47,13 +47,13 @@ yarn add @reason-react-native/push-notification-ios
4747

4848
#### `ReactNativePushNotificationIOS.Notification.t`
4949

50-
```reason
50+
```rescript
5151
type t; // abstract type
5252
```
5353

5454
#### `ReactNativePushNotificationIOS.localNotification`
5555

56-
```reason
56+
```rescript
5757
type localNotification;
5858
5959
[@bs.obj]
@@ -85,7 +85,7 @@ external localNotification:
8585

8686
#### `ReactNativePushNotificationIOS.deliveredNotification`
8787

88-
```reason
88+
```rescript
8989
type deliveredNotification = {
9090
identifier: string
9191
date: option(string)
@@ -99,7 +99,7 @@ type deliveredNotification = {
9999

100100
#### `ReactNativePushNotificationIOS.formattedLocalNotification`
101101

102-
```reason
102+
```rescript
103103
type formattedLocalNotification = {
104104
fireDate: option(string),
105105
alertAction: option(string),
@@ -115,7 +115,7 @@ type formattedLocalNotification = {
115115

116116
#### `ReactNativePushNotificationIOS.registrationError`
117117

118-
```reason
118+
```rescript
119119
type registrationError('a) = {
120120
message: string,
121121
code: int,
@@ -125,7 +125,7 @@ type registrationError('a) = {
125125

126126
#### `ReactNativePushNotificationIOS.permissions`
127127

128-
```reason
128+
```rescript
129129
type permissions = {
130130
alert: bool,
131131
badge: bool,
@@ -137,7 +137,7 @@ type permissions = {
137137

138138
#### `ReactNativePushNotificationIOS.requestPermissionsOptions`
139139

140-
```reason
140+
```rescript
141141
type requestPermissionsOptions;
142142
[@bs.obj]
143143
external requestPermissionsOptions:
@@ -148,7 +148,7 @@ external requestPermissionsOptions:
148148

149149
#### `ReactNativePushNotificationIOS.fetchResult`
150150

151-
```reason
151+
```rescript
152152
type fetchResult;
153153
[@bs.obj]
154154
external fetchResult:
@@ -161,127 +161,127 @@ external fetchResult:
161161

162162
#### `ReactNativePushNotificationIOS.Notification.getAlert`
163163

164-
```reason
164+
```rescript
165165
Notification.t => option(Js.Json.t)
166166
```
167167

168168
#### `ReactNativePushNotificationIOS.Notification.getTitle`
169169

170-
```reason
170+
```rescript
171171
Notification.t => option(string)
172172
```
173173

174174
#### `ReactNativePushNotificationIOS.Notification.getMessage`
175175

176-
```reason
176+
```rescript
177177
Notification.t => option(Js.Json.t)
178178
```
179179

180180
#### `ReactNativePushNotificationIOS.Notification.getSound`
181181

182-
```reason
182+
```rescript
183183
Notification.t => option(string)
184184
```
185185

186186
#### `ReactNativePushNotificationIOS.Notification.getCategory`
187187

188-
```reason
188+
```rescript
189189
Notification.t => option(string)
190190
```
191191

192192
#### `ReactNativePushNotificationIOS.Notification.getContentAvailable`
193193

194-
```reason
194+
```rescript
195195
Notification.t => bool
196196
```
197197

198198
#### `ReactNativePushNotificationIOS.Notification.getBadgeCount`
199199

200-
```reason
200+
```rescript
201201
Notification.t => option(int)
202202
```
203203

204204
#### `ReactNativePushNotificationIOS.Notification.getData`
205205

206-
```reason
206+
```rescript
207207
Notification.t => option(Js.Json.t)
208208
```
209209

210210
#### `ReactNativePushNotificationIOS.Notification.getThreadID`
211211

212-
```reason
212+
```rescript
213213
Notification.t => option(string)
214214
```
215215

216216
#### `ReactNativePushNotificationIOS.presentLocalNotification`
217217

218-
```reason
218+
```rescript
219219
localNotification => unit
220220
```
221221

222222
#### `ReactNativePushNotificationIOS.scheduleLocalNotification`
223223

224-
```reason
224+
```rescript
225225
localNotification => unit
226226
```
227227

228228
#### `ReactNativePushNotificationIOS.cancelAllLocalNotifications`
229229

230-
```reason
230+
```rescript
231231
unit => unit
232232
```
233233

234234
#### `ReactNativePushNotificationIOS.removeAllDeliveredNotifications`
235235

236-
```reason
236+
```rescript
237237
unit => unit
238238
```
239239

240240
#### `ReactNativePushNotificationIOS.getDeliveredNotifications`
241241

242-
```reason
242+
```rescript
243243
(array(deliveredNotification) => unit)
244244
```
245245

246246
#### `ReactNativePushNotificationIOS.removeDeliveredNotifications`
247247

248-
```reason
248+
```rescript
249249
(~identifiers: array(string)) => unit
250250
```
251251

252252
#### `ReactNativePushNotificationIOS.setApplicationIconBadgeNumber`
253253

254-
```reason
254+
```rescript
255255
int => unit
256256
```
257257

258258
#### `ReactNativePushNotificationIOS.getApplicationIconBadgeNumber`
259259

260-
```reason
260+
```rescript
261261
(int => unit) => unit
262262
```
263263

264264
#### `ReactNativePushNotificationIOS.cancelLocalNotifications`
265265

266-
```reason
266+
```rescript
267267
unit => unit
268268
```
269269

270270
#### `ReactNativePushNotificationIOS.cancelLocalNotificationsWithUserInfo`
271271

272-
```reason
272+
```rescript
273273
Js.Json.t => unit
274274
```
275275

276276
#### `ReactNativePushNotificationIOS.getScheduledLocalNotifications`
277277

278-
```reason
278+
```rescript
279279
(array(formattedLocalNotification) => unit) => unit
280280
```
281281

282282
#### `ReactNativePushNotificationIOS.addEventListener`
283283

284-
```reason
284+
```rescript
285285
(
286286
[@bs.string]
287287
[
@@ -296,7 +296,7 @@ Js.Json.t => unit
296296

297297
#### `ReactNativePushNotificationIOS.removeEventListener`
298298

299-
```reason
299+
```rescript
300300
(
301301
[@bs.string]
302302
[
@@ -311,37 +311,37 @@ Js.Json.t => unit
311311

312312
#### `ReactNativePushNotificationIOS.requestPermissions`
313313

314-
```reason
314+
```rescript
315315
unit => Js.Promise.t(permissions)
316316
```
317317

318318
#### `ReactNativePushNotificationIOS.requestPermissionsWithOptions`
319319

320-
```reason
320+
```rescript
321321
requestPermissionsOptions => Js.Promise.t(permissions)
322322
```
323323

324324
#### `ReactNativePushNotificationIOS.abandonPermissions`
325325

326-
```reason
326+
```rescript
327327
unit => unit
328328
```
329329

330330
#### `ReactNativePushNotificationIOS.checkPermissions`
331331

332-
```reason
332+
```rescript
333333
(unit => permissions) => unit
334334
```
335335

336336
#### `ReactNativePushNotificationIOS.finish`
337337

338-
```reason
338+
```rescript
339339
fetchResult => unit
340340
```
341341

342342
#### `ReactNativePushNotificationIOS.getInitialNotification`
343343

344-
```reason
344+
```rescript
345345
unit => Js.Promise.t(Js.Nullable.t(Notification.t))
346346
```
347347

@@ -355,11 +355,11 @@ releases.
355355
## Contribute
356356

357357
Read the
358-
[contribution guidelines](https://github.com/reason-react-native/.github/blob/master/CONTRIBUTING.md)
358+
[contribution guidelines](https://github.com/rescript-react-native/.github/blob/master/CONTRIBUTING.md)
359359
before contributing.
360360

361361
## Code of Conduct
362362

363363
We want this community to be friendly and respectful to each other. Please read
364-
[our full code of conduct](https://github.com/reason-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
364+
[our full code of conduct](https://github.com/rescript-react-native/.github/blob/master/CODE_OF_CONDUCT.md)
365365
so that you can understand what actions will and will not be tolerated.

bsconfig.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
{
2-
"name": "@reason-react-native/push-notification-ios",
3-
"refmt": 3,
4-
"reason": {
5-
"react-jsx": 3
6-
},
2+
"name": "@rescript-react-native/push-notification-ios",
3+
"reason": { "react-jsx": 3 },
74
"package-specs": {
85
"module": "commonjs",
96
"in-source": true

0 commit comments

Comments
 (0)