From 1d4ea3d99f0d89511473b002bb11c44c6dc438a5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:45:05 +0100 Subject: [PATCH] Update dependency react-native-dropdownalert to v5 (#9096) Co-authored-by: Laurent Cozic --- packages/app-mobile/package.json | 2 +- packages/app-mobile/root.tsx | 10 ++-- yarn.lock | 88 ++++---------------------------- 3 files changed, 17 insertions(+), 83 deletions(-) diff --git a/packages/app-mobile/package.json b/packages/app-mobile/package.json index 4ae643fd7..7eed5103f 100644 --- a/packages/app-mobile/package.json +++ b/packages/app-mobile/package.json @@ -49,7 +49,7 @@ "react-native-device-info": "10.9.0", "react-native-dialogbox": "0.6.10", "react-native-document-picker": "9.0.1", - "react-native-dropdownalert": "4.5.1", + "react-native-dropdownalert": "5.1.0", "react-native-exit-app": "2.0.0", "react-native-file-viewer": "2.1.5", "react-native-fingerprint-scanner": "6.0.0", diff --git a/packages/app-mobile/root.tsx b/packages/app-mobile/root.tsx index 8b159d102..fdfbae2fc 100644 --- a/packages/app-mobile/root.tsx +++ b/packages/app-mobile/root.tsx @@ -759,6 +759,7 @@ class AppComponent extends React.Component { private urlOpenListener_: EmitterSubscription|null = null; private appStateChangeListener_: NativeEventSubscription|null = null; private themeChangeListener_: NativeEventSubscription|null = null; + private dropdownAlert_ = (_data: any) => new Promise(res => res); public constructor() { super(); @@ -891,7 +892,11 @@ class AppComponent extends React.Component { AlarmService.setInAppNotificationHandler(async (alarmId: string) => { const alarm = await Alarm.load(alarmId); const notification = await Alarm.makeNotification(alarm); - this.dropdownAlert_.alertWithType('info', notification.title, notification.body ? notification.body : ''); + void this.dropdownAlert_({ + type: 'info', + title: notification.title, + message: notification.body ? notification.body : '', + }); }); this.appStateChangeListener_ = RNAppState.addEventListener('change', this.onAppStateChange_); @@ -1082,8 +1087,7 @@ class AppComponent extends React.Component { { shouldShowMainContent && } - this.dropdownAlert_ = ref} tapToCloseEnabled={true} /> - { !shouldShowMainContent && (this.dropdownAlert_ = func)} /> { !shouldShowMainContent && =0.10.0" - checksum: bb5daa7c3785d6742f4379a81e55b549a469503f7c9bf9411b48592e86632cf5e8fe8ea878dba185c0f33eb7c510c23abdeb55aebfdf5d3c70f031ced68c5424 - languageName: node - linkType: hard - "isstream@npm:~0.1.2": version: 0.1.2 resolution: "isstream@npm:0.1.2" @@ -23559,7 +23527,7 @@ __metadata: languageName: node linkType: hard -"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.3.1, loose-envify@npm:^1.4.0": +"loose-envify@npm:^1.0.0, loose-envify@npm:^1.1.0, loose-envify@npm:^1.4.0": version: 1.4.0 resolution: "loose-envify@npm:1.4.0" dependencies: @@ -26168,16 +26136,6 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^1.0.1": - version: 1.7.3 - resolution: "node-fetch@npm:1.7.3" - dependencies: - encoding: ^0.1.11 - is-stream: ^1.0.1 - checksum: 3bb0528c05d541316ebe52770d71ee25a6dce334df4231fd55df41a644143e07f068637488c18a5b0c43f05041dbd3346752f9e19b50df50569a802484544d5b - languageName: node - linkType: hard - "node-fetch@npm:^2.2.0, node-fetch@npm:^2.5.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1": version: 2.6.6 resolution: "node-fetch@npm:2.6.6" @@ -28748,15 +28706,6 @@ __metadata: languageName: node linkType: hard -"promise@npm:^7.1.1": - version: 7.3.1 - resolution: "promise@npm:7.3.1" - dependencies: - asap: ~2.0.3 - checksum: 475bb069130179fbd27ed2ab45f26d8862376a137a57314cf53310bdd85cc986a826fd585829be97ebc0aaf10e9d8e68be1bfe5a4a0364144b1f9eedfa940cf1 - languageName: node - linkType: hard - "prompts@npm:^2.0.1, prompts@npm:^2.4.0": version: 2.4.2 resolution: "prompts@npm:2.4.2" @@ -28787,16 +28736,6 @@ __metadata: languageName: node linkType: hard -"prop-types@npm:15.5.10": - version: 15.5.10 - resolution: "prop-types@npm:15.5.10" - dependencies: - fbjs: ^0.8.9 - loose-envify: ^1.3.1 - checksum: 3e928ad5afa5124d52a341a706170628e7b0caa9340515782be6a767261e6eb0e473116188bb8efbe9d9b62cb3c9501c71bf4ab7d34f2507294ee34c90de6964 - languageName: node - linkType: hard - "prop-types@npm:^15.5.7, prop-types@npm:^15.5.8, prop-types@npm:^15.6.0, prop-types@npm:^15.6.2, prop-types@npm:^15.7.2": version: 15.7.2 resolution: "prop-types@npm:15.7.2" @@ -29356,12 +29295,10 @@ __metadata: languageName: node linkType: hard -"react-native-dropdownalert@npm:4.5.1": - version: 4.5.1 - resolution: "react-native-dropdownalert@npm:4.5.1" - dependencies: - prop-types: 15.5.10 - checksum: 16346105f130f1aefe8ed4c9171524ce931f2a924c6fa95b41291f99a5613a7c4fb9a3f75b19ef280ac8d47f8ba13ebadf596174d83a92cbbdd00c278c2e2b9f +"react-native-dropdownalert@npm:5.1.0": + version: 5.1.0 + resolution: "react-native-dropdownalert@npm:5.1.0" + checksum: 595e409967a28e5305b7895407a801c6eb05091277eaa7362b30dce18213d695dcbf0811c69cbaa20f35ce9aa21f13d44235dd35717119e0020a3159bd06b0ef languageName: node linkType: hard @@ -34704,13 +34641,6 @@ __metadata: languageName: node linkType: hard -"ua-parser-js@npm:^0.7.30": - version: 0.7.31 - resolution: "ua-parser-js@npm:0.7.31" - checksum: e2f8324a83d1715601576af85b2b6c03890699aaa7272950fc77ea925c70c5e4f75060ae147dc92124e49f7f0e3d6dd2b0a91e7f40d267e92df8894be967ba8b - languageName: node - linkType: hard - "uc.micro@npm:^1.0.1, uc.micro@npm:^1.0.5": version: 1.0.6 resolution: "uc.micro@npm:1.0.6" @@ -35873,7 +35803,7 @@ __metadata: languageName: node linkType: hard -"whatwg-fetch@npm:>=0.10.0, whatwg-fetch@npm:^3.0.0": +"whatwg-fetch@npm:^3.0.0": version: 3.6.2 resolution: "whatwg-fetch@npm:3.6.2" checksum: ee976b7249e7791edb0d0a62cd806b29006ad7ec3a3d89145921ad8c00a3a67e4be8f3fb3ec6bc7b58498724fd568d11aeeeea1f7827e7e1e5eae6c8a275afed