Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
ReScript bindings for @react-native-community/react-native-push-notification-ios
License
rescript-react-native/push-notification-ios
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ReScript bindings for@react-native-community/react-native-push-notification-ios.
Exposed asReactNativePushNotificationIOS module.
@rescript-react-native/push-notification-ios X.y.* means it's compatible with@react-native-community/react-native-push-notification-ios X.y.*
When@react-native-community/react-native-push-notification-iosis properly installed & configured by following their installation instructions,you can install the bindings:
npm install @rescript-react-native/push-notification-ios#oryarn add @rescript-react-native/push-notification-ios
@rescript-react-native/push-notification-ios should be added tobs-dependencies in yourbsconfig.json:
{ //... "bs-dependencies": [ "@rescript/react", "rescript-react-native", // ...+ "@rescript-react-native/push-notification-ios" ], //...}typet;// abstract type
typelocalNotification;[@bs.obj]externallocalNotification: ( ~alertBody:string=?, ~alertTitle:string=?, ~alertAction:string=?, ~soundName:string=?, ~isSilent:bool=?, ~category:string=?, ~userInfo:Js.Json.t=?, ~applicationIconBadgeNumber:int=?, ~fireDate:Js.Date.t=?, ~repeatInterval: [@bs.string] [ |`minute | `hour |`day | `week |`month | `year ]=?,unit )=>localNotification="";
typedeliveredNotification= {identifier:stringdate:option(string)title:option(string)body:option(string)category:option(string)threadId:option(string)userInfo:option(Js.Json.t),};
typeformattedLocalNotification= {fireDate:option(string),alertAction:option(string),alertTitle:option(string),alertBody:option(string),applicationIconBadgeNumber:option(int),category:option(string),repeatInterval:option(string),soundName:option(string),userInfo:option(Js.Json.t),};
typeregistrationError('a)= {message:string,code:int,details:Js.t('a),};
typepermissions= {alert:bool,badge:bool,sound:bool,lockScreen:bool,notificationCenter:bool,};
typerequestPermissionsOptions;[@bs.obj]externalrequestPermissionsOptions: (~alert:bool=?, ~badge:bool=?, ~sound:bool=?,unit)=>requestPermissionsOptions="";
typefetchResult;[@bs.obj]externalfetchResult: (~_NewData:string=?, ~_NoData:string=?, ~_ResultFailed:string=?,unit)=>fetchResult="";
Notification.t=>option(Js.Json.t)
Notification.t=>option(string)
Notification.t=>option(Js.Json.t)
Notification.t=>option(string)
Notification.t=>option(string)
Notification.t=>bool
Notification.t=>option(int)
Notification.t=>option(Js.Json.t)
Notification.t=>option(string)
localNotification=>unit
localNotification=>unit
unit=>unit
unit=>unit
(array(deliveredNotification)=>unit)
(~identifiers:array(string))=>unit
int=>unit
(int=>unit)=>unit
unit=>unit
Js.Json.t=>unit
(array(formattedLocalNotification)=>unit)=>unit
( [@bs.string] [ |`notification(Notification.t => unit) | `localNotification(Notification.t=>unit) |`register((~deviceToken: string) => unit) | `registrationError(registrationError('a)=>unit) ] )=>unit
( [@bs.string] [ |`notification(Notification.t => unit) | `localNotification(Notification.t=>unit) |`register((~deviceToken: string) => unit) | `registrationError(registrationError('a)=>unit) ] )=>unit
unit=>Js.Promise.t(permissions)
requestPermissionsOptions=>Js.Promise.t(permissions)
unit=>unit
(unit=>permissions)=>unit
fetchResult=>unit
unit=>Js.Promise.t(Js.Nullable.t(Notification.t))
Check thechangelog for more informations about recentreleases.
Read thecontribution guidelinesbefore contributing.
We want this community to be friendly and respectful to each other. Please readour full code of conductso that you can understand what actions will and will not be tolerated.
About
ReScript bindings for @react-native-community/react-native-push-notification-ios
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Contributors6
Uh oh!
There was an error while loading.Please reload this page.