Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,14 @@ defaults: &defaults
js_defaults: &js_defaults
<<: *defaults
docker:
- image: circleci/node:8
- image: circleci/node:10
environment:
- PATH: "/opt/yarn/yarn-v1.5.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

# -------------------------
# JOBS
# -------------------------

version: 2
jobs:
# Set up a Node environment for downstream jobs
Expand Down
12 changes: 6 additions & 6 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,28 +194,28 @@ class PushNotificationIOS {
if (type === 'notification') {
listener = PushNotificationEmitter.addListener(
DEVICE_NOTIF_EVENT,
notifData => {
(notifData) => {
handler(new PushNotificationIOS(notifData));
},
);
} else if (type === 'localNotification') {
listener = PushNotificationEmitter.addListener(
DEVICE_LOCAL_NOTIF_EVENT,
notifData => {
(notifData) => {
handler(new PushNotificationIOS(notifData));
},
);
} else if (type === 'register') {
listener = PushNotificationEmitter.addListener(
NOTIF_REGISTER_EVENT,
registrationInfo => {
(registrationInfo) => {
handler(registrationInfo.deviceToken);
},
);
} else if (type === 'registrationError') {
listener = PushNotificationEmitter.addListener(
NOTIF_REGISTRATION_ERROR_EVENT,
errorInfo => {
(errorInfo) => {
handler(errorInfo);
},
);
Expand Down Expand Up @@ -310,7 +310,7 @@ class PushNotificationIOS {
*/
static getInitialNotification(): Promise<?PushNotificationIOS> {
return RNCPushNotificationIOS.getInitialNotification().then(
notification => {
(notification) => {
return notification && new PushNotificationIOS(notification);
},
);
Expand All @@ -333,7 +333,7 @@ class PushNotificationIOS {
if (nativeNotif.remote) {
// Extract data from Apple's `aps` dict as defined:
// https://developer.apple.com/library/ios/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ApplePushService.html
Object.keys(nativeNotif).forEach(notifKey => {
Object.keys(nativeNotif).forEach((notifKey) => {
const notifVal = nativeNotif[notifKey];
if (notifKey === 'aps') {
this._alert = notifVal.alert;
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,17 @@
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@react-native-community/eslint-config": "^0.0.7",
"@react-native-community/eslint-config": "^1.0.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "24.1.0",
"babel-plugin-module-resolver": "^3.1.3",
"eslint": "^6.8.0",
"eslint-plugin-prettier": "^3.1.2",
"flow-bin": "^0.105.2",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "0.58.0",
"react": "16.9.0",
"react-native": "0.61.5",
"typescript": "^3.7.4"
"typescript": "^3.8.3"
},
"repository": {
"type": "git",
Expand Down
Loading