Gathering detailed insights and metrics for @reason-react-native/push-notification-ios
Gathering detailed insights and metrics for @reason-react-native/push-notification-ios
Gathering detailed insights and metrics for @reason-react-native/push-notification-ios
Gathering detailed insights and metrics for @reason-react-native/push-notification-ios
ReScript bindings for @react-native-community/react-native-push-notification-ios
npm install @reason-react-native/push-notification-ios
Typescript
Module System
Node Version
NPM Version
ReScript (98.56%)
JavaScript (1.44%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
6 Stars
39 Commits
1 Forks
3 Watchers
4 Branches
8 Contributors
Updated on Nov 05, 2024
Latest Version
1.7.2
Package Id
@reason-react-native/push-notification-ios@1.7.2
Unpacked Size
23.25 kB
Size
5.35 kB
File Count
6
NPM Version
6.14.6
Node Version
12.18.3
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
5
@reason-react-native/push-notification-ios
ReScript / Reason bindings for
@react-native-community/react-native-push-notification-ios
.
Exposed as ReactNativePushNotificationIOS
module.
@reason-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-ios
is properly installed & configured by following their installation instructions,
you can install the bindings:
1npm install @reason-react-native/push-notification-ios 2# or 3yarn add @reason-react-native/push-notification-ios
@reason-react-native/push-notification-ios
should be added to
bs-dependencies
in your bsconfig.json
:
1{ 2 //... 3 "bs-dependencies": [ 4 "reason-react", 5 "reason-react-native", 6 // ... 7+ "@reason-react-native/push-notification-ios" 8 ], 9 //... 10}
ReactNativePushNotificationIOS.Notification.t
1 type t; // abstract type
ReactNativePushNotificationIOS.localNotification
1type localNotification; 2 3[@bs.obj] 4external localNotification: 5 ( 6 ~alertBody: string=?, 7 ~alertTitle: string=?, 8 ~alertAction: string=?, 9 ~soundName: string=?, 10 ~isSilent: bool=?, 11 ~category: string=?, 12 ~userInfo: Js.Json.t=?, 13 ~applicationIconBadgeNumber: int=?, 14 ~fireDate: Js.Date.t=?, 15 ~repeatInterval: [@bs.string] [ 16 | `minute 17 | `hour 18 | `day 19 | `week 20 | `month 21 | `year 22 ] 23 =?, 24 unit 25 ) => 26 localNotification = 27 "";
ReactNativePushNotificationIOS.deliveredNotification
1type deliveredNotification = { 2 identifier: string 3 date: option(string) 4 title: option(string) 5 body: option(string) 6 category: option(string) 7 threadId: option(string) 8 userInfo: option(Js.Json.t), 9};
ReactNativePushNotificationIOS.formattedLocalNotification
1type formattedLocalNotification = { 2 fireDate: option(string), 3 alertAction: option(string), 4 alertTitle: option(string), 5 alertBody: option(string), 6 applicationIconBadgeNumber: option(int), 7 category: option(string), 8 repeatInterval: option(string), 9 soundName: option(string), 10 userInfo: option(Js.Json.t), 11};
ReactNativePushNotificationIOS.registrationError
1type registrationError('a) = {
2 message: string,
3 code: int,
4 details: Js.t('a),
5};
ReactNativePushNotificationIOS.permissions
1type permissions = { 2 alert: bool, 3 badge: bool, 4 sound: bool, 5 lockScreen: bool, 6 notificationCenter: bool, 7};
ReactNativePushNotificationIOS.requestPermissionsOptions
1type requestPermissionsOptions;
2[@bs.obj]
3external requestPermissionsOptions:
4 (~alert: bool=?, ~badge: bool=?, ~sound: bool=?, unit) =>
5 requestPermissionsOptions =
6 "";
ReactNativePushNotificationIOS.fetchResult
1type fetchResult;
2[@bs.obj]
3external fetchResult:
4 (~_NewData: string=?, ~_NoData: string=?, ~_ResultFailed: string=?, unit) =>
5 fetchResult =
6 "";
ReactNativePushNotificationIOS.Notification.getAlert
1Notification.t => option(Js.Json.t)
ReactNativePushNotificationIOS.Notification.getTitle
1Notification.t => option(string)
ReactNativePushNotificationIOS.Notification.getMessage
1Notification.t => option(Js.Json.t)
ReactNativePushNotificationIOS.Notification.getSound
1Notification.t => option(string)
ReactNativePushNotificationIOS.Notification.getCategory
1Notification.t => option(string)
ReactNativePushNotificationIOS.Notification.getContentAvailable
1Notification.t => bool
ReactNativePushNotificationIOS.Notification.getBadgeCount
1Notification.t => option(int)
ReactNativePushNotificationIOS.Notification.getData
1Notification.t => option(Js.Json.t)
ReactNativePushNotificationIOS.Notification.getThreadID
1Notification.t => option(string)
ReactNativePushNotificationIOS.presentLocalNotification
1localNotification => unit
ReactNativePushNotificationIOS.scheduleLocalNotification
1localNotification => unit
ReactNativePushNotificationIOS.cancelAllLocalNotifications
1unit => unit
ReactNativePushNotificationIOS.removeAllDeliveredNotifications
1unit => unit
ReactNativePushNotificationIOS.getDeliveredNotifications
1(array(deliveredNotification) => unit)
ReactNativePushNotificationIOS.removeDeliveredNotifications
1(~identifiers: array(string)) => unit
ReactNativePushNotificationIOS.setApplicationIconBadgeNumber
1int => unit
ReactNativePushNotificationIOS.getApplicationIconBadgeNumber
1(int => unit) => unit
ReactNativePushNotificationIOS.cancelLocalNotifications
1unit => unit
ReactNativePushNotificationIOS.cancelLocalNotificationsWithUserInfo
1Js.Json.t => unit
ReactNativePushNotificationIOS.getScheduledLocalNotifications
1(array(formattedLocalNotification) => unit) => unit
ReactNativePushNotificationIOS.addEventListener
1 ( 2 [@bs.string] 3 [ 4 | `notification(Notification.t => unit) 5 | `localNotification(Notification.t => unit) 6 | `register((~deviceToken: string) => unit) 7 | `registrationError(registrationError('a) => unit) 8 ] 9 ) => 10 unit
ReactNativePushNotificationIOS.removeEventListener
1( 2 [@bs.string] 3 [ 4 | `notification(Notification.t => unit) 5 | `localNotification(Notification.t => unit) 6 | `register((~deviceToken: string) => unit) 7 | `registrationError(registrationError('a) => unit) 8 ] 9 ) => 10 unit
ReactNativePushNotificationIOS.requestPermissions
1unit => Js.Promise.t(permissions)
ReactNativePushNotificationIOS.requestPermissionsWithOptions
1requestPermissionsOptions => Js.Promise.t(permissions)
ReactNativePushNotificationIOS.abandonPermissions
1unit => unit
ReactNativePushNotificationIOS.checkPermissions
1(unit => permissions) => unit
ReactNativePushNotificationIOS.finish
1fetchResult => unit
ReactNativePushNotificationIOS.getInitialNotification
1unit => Js.Promise.t(Js.Nullable.t(Notification.t))
Check the changelog for more informations about recent releases.
Read the contribution guidelines before contributing.
We want this community to be friendly and respectful to each other. Please read our full code of conduct so that you can understand what actions will and will not be tolerated.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
Found 1/28 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
18 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More