mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Merge pull request #104 from breez/savage-service-status
Update 0.2.10 & add service status page
This commit is contained in:
18
snippets/react-native/service_status.ts
Normal file
18
snippets/react-native/service_status.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { serviceHealthCheck, reportIssue, ReportIssueRequestVariant } from '@breeztech/react-native-breez-sdk'
|
||||
|
||||
const healthCheckStatus = async () => {
|
||||
// ANCHOR: health-check-status
|
||||
const healthCheck = await serviceHealthCheck()
|
||||
console.log(`Current service status is: ${healthCheck.status}`)
|
||||
// ANCHOR_END: health-check-status
|
||||
}
|
||||
|
||||
const reportPaymentFailure = async () => {
|
||||
// ANCHOR: report-payment-failure
|
||||
const paymentHash = '...'
|
||||
await reportIssue({
|
||||
type: ReportIssueRequestVariant.PAYMENT_FAILURE,
|
||||
data: { paymentHash }
|
||||
})
|
||||
// ANCHOR_END: report-payment-failure
|
||||
}
|
||||
@@ -714,10 +714,10 @@
|
||||
"@babel/helper-validator-identifier" "^7.22.20"
|
||||
to-fast-properties "^2.0.0"
|
||||
|
||||
"@breeztech/react-native-breez-sdk@0.2.9":
|
||||
version "0.2.9"
|
||||
resolved "https://registry.yarnpkg.com/@breeztech/react-native-breez-sdk/-/react-native-breez-sdk-0.2.9.tgz#e1bcd37f16b92ac5792fedf7c4afa481322dac80"
|
||||
integrity sha512-4mziuxCa8hpDGtMFD4VWK7tj+z3F/48x5NsKwxIYMkfLxxYP+6ZvD0ucEbyqr3P0Lwn0Cj4/iCnwM2gIL8UFcw==
|
||||
"@breeztech/react-native-breez-sdk@0.2.10":
|
||||
version "0.2.10"
|
||||
resolved "https://registry.yarnpkg.com/@breeztech/react-native-breez-sdk/-/react-native-breez-sdk-0.2.10.tgz#072b00f57028b5276c600a462cbcaac93d3dee22"
|
||||
integrity sha512-81wtbkKGxhDaIweIQkD+LLDUL7WTtbI3qEb9vx4Itiu1hGzM8Q2RlYNF5R1jh2m4wdYKUKMWSBd3O4VRnywf1Q==
|
||||
|
||||
"@esbuild/android-arm64@0.18.20":
|
||||
version "0.18.20"
|
||||
|
||||
Reference in New Issue
Block a user