@@ -48,13 +48,13 @@ yarn add @reason-react-native/push-notification-ios
4848
4949#### ` ReactNativePushNotificationIOS.Notification.t `
5050
51- ``` re
51+ ``` reason
5252 type t; // abstract type
5353```
5454
5555#### ` ReactNativePushNotificationIOS.localNotification `
5656
57- ``` re
57+ ``` reason
5858type localNotification;
5959
6060[@bs.obj]
@@ -86,7 +86,7 @@ external localNotification:
8686
8787#### ` ReactNativePushNotificationIOS.deliveredNotification `
8888
89- ``` re
89+ ``` reason
9090type deliveredNotification = {
9191 .
9292 "identifier": string,
@@ -101,7 +101,7 @@ type deliveredNotification = {
101101
102102#### ` ReactNativePushNotificationIOS.formattedLocalNotification `
103103
104- ``` re
104+ ``` reason
105105type formattedLocalNotification = {
106106 .
107107 "fireDate": Js.Nullable.t(string),
@@ -116,7 +116,7 @@ type formattedLocalNotification = {
116116
117117#### ` ReactNativePushNotificationIOS.registrationError `
118118
119- ``` re
119+ ``` reason
120120type registrationError('a) = {
121121 .
122122 "message": string,
@@ -127,7 +127,7 @@ type registrationError('a) = {
127127
128128#### ` ReactNativePushNotificationIOS.permissions `
129129
130- ```re
130+ ``` reason
131131type permissions = {
132132 .
133133 "alert": bool,
@@ -138,7 +138,7 @@ type permissions = {
138138
139139#### ` ReactNativePushNotificationIOS.requestPermissionsOptions `
140140
141- ``` re
141+ ``` reason
142142type requestPermissionsOptions;
143143[@bs.obj]
144144external requestPermissionsOptions:
@@ -149,7 +149,7 @@ external requestPermissionsOptions:
149149
150150#### ` ReactNativePushNotificationIOS.fetchResult `
151151
152- ``` re
152+ ``` reason
153153type fetchResult;
154154[@bs.obj]
155155external fetchResult:
@@ -162,25 +162,25 @@ external fetchResult:
162162
163163#### ` ReactNativePushNotificationIOS.Notification.getAlert `
164164
165- ``` re
165+ ``` reason
166166Notification.t => option(Js.Json.t)
167167```
168168
169169#### ` ReactNativePushNotificationIOS.Notification.getMessage `
170170
171- ```re
171+ ``` reason
172172Notification.t => option(Js.Json.t)
173173```
174174
175175#### ` ReactNativePushNotificationIOS.Notification.getSound `
176176
177- ``` re
177+ ``` reason
178178Notification.t => option(string)
179179```
180180
181181#### ` ReactNativePushNotificationIOS.Notification.getCategory `
182182
183- ```re
183+ ``` reason
184184Notification.t => option(string)
185185```
186186
@@ -192,91 +192,91 @@ Notification.t => bool
192192
193193#### ` ReactNativePushNotificationIOS.Notification.getBadgeCount `
194194
195- ``` re
195+ ``` reason
196196Notification.t => option(int)
197197```
198198
199199#### ` ReactNativePushNotificationIOS.Notification.getData `
200200
201- ```re
201+ ``` reason
202202Notification.t => option(Js.Json.t)
203203```
204204
205205#### ` ReactNativePushNotificationIOS.Notification.getThreadID `
206206
207- ``` re
207+ ``` reason
208208Notification.t => option(string)
209209```
210210
211211#### ` ReactNativePushNotificationIOS.presentLocalNotification `
212212
213- ```re
213+ ``` reason
214214localNotification => unit
215215```
216216
217217#### ` ReactNativePushNotificationIOS.scheduleLocalNotification `
218218
219- ``` re
219+ ``` reason
220220localNotification => unit
221221```
222222
223223#### ` ReactNativePushNotificationIOS.cancelAllLocalNotifications `
224224
225- ``` re
225+ ``` reason
226226unit => unit
227227```
228228
229229#### ` ReactNativePushNotificationIOS.removeAllDeliveredNotifications `
230230
231- ``` re
231+ ``` reason
232232unit => unit
233233```
234234
235235#### ` ReactNativePushNotificationIOS.getDeliveredNotifications `
236236
237- ``` re
237+ ``` reason
238238(array(deliveredNotification) => unit)
239239```
240240
241241#### ` ReactNativePushNotificationIOS.removeDeliveredNotifications `
242242
243- ``` re
243+ ``` reason
244244(~identifiers: array(string)) => unit
245245```
246246
247247#### ` ReactNativePushNotificationIOS.setApplicationIconBadgeNumber `
248248
249- ``` re
249+ ``` reason
250250int => unit
251251```
252252
253253#### ` ReactNativePushNotificationIOS.getApplicationIconBadgeNumber `
254254
255- ``` re
255+ ``` reason
256256(int => unit) => unit
257257```
258258
259259#### ` ReactNativePushNotificationIOS.cancelLocalNotifications `
260260
261- ``` re
261+ ``` reason
262262unit => unit
263263```
264264
265265#### ` ReactNativePushNotificationIOS.cancelLocalNotificationsWithUserInfo `
266266
267- ``` re
267+ ``` reason
268268Js.Json.t => unit
269269```
270270
271271#### ` ReactNativePushNotificationIOS.getScheduledLocalNotifications `
272272
273- ``` re
273+ ``` reason
274274(array(formattedLocalNotification) => unit) => unit
275275```
276276
277277#### ` ReactNativePushNotificationIOS.addEventListener `
278278
279- ``` re
279+ ``` reason
280280 (
281281 [@bs.string]
282282 [
@@ -291,7 +291,7 @@ Js.Json.t => unit
291291
292292#### ` ReactNativePushNotificationIOS.removeEventListener `
293293
294- ```re
294+ ``` reason
295295(
296296 [@bs.string]
297297 [
@@ -306,37 +306,37 @@ Js.Json.t => unit
306306
307307#### ` ReactNativePushNotificationIOS.requestPermissions `
308308
309- ``` re
309+ ``` reason
310310unit => Js.Promise.t(permissions)
311311```
312312
313313#### ` ReactNativePushNotificationIOS.requestPermissionsWithOptions `
314314
315- ``` re
315+ ``` reason
316316requestPermissionsOptions => Js.Promise.t(permissions)
317317```
318318
319319#### ` ReactNativePushNotificationIOS.abandonPermissions `
320320
321- ``` re
321+ ``` reason
322322unit => unit
323323```
324324
325325#### ` ReactNativePushNotificationIOS.checkPermissions `
326326
327- ``` re
327+ ``` reason
328328(unit => permissions) => unit
329329```
330330
331331#### ` ReactNativePushNotificationIOS.finish `
332332
333- ``` re
333+ ``` reason
334334fetchResult => unit
335335```
336336
337337#### ` ReactNativePushNotificationIOS.getInitialNotification `
338338
339- ``` re
339+ ``` reason
340340unit => Js.Promise.t(Js.Nullable.t(Notification.t))
341341```
342342
0 commit comments