mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
format react native
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
listPayments,
|
listPayments,
|
||||||
PaymentTypeFilter
|
PaymentTypeFilter
|
||||||
} from "@breeztech/react-native-breez-sdk"
|
} from '@breeztech/react-native-breez-sdk'
|
||||||
|
|
||||||
const exampleListPayments = async () => {
|
const exampleListPayments = async () => {
|
||||||
// ANCHOR: list-payments
|
// ANCHOR: list-payments
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { sendPayment } from "@breeztech/react-native-breez-sdk"
|
import { sendPayment } from '@breeztech/react-native-breez-sdk'
|
||||||
|
|
||||||
const exampleSendLightningPayment = async () => {
|
const exampleSendLightningPayment = async () => {
|
||||||
// ANCHOR: send-payment
|
// ANCHOR: send-payment
|
||||||
const bolt11 = "bolt11 invoice"
|
const bolt11 = 'bolt11 invoice'
|
||||||
// The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount.
|
// The `amountMsat` param is optional and should only passed if the bolt11 doesn't specify an amount.
|
||||||
// The amountMsat is required in case an amount is not specified in the bolt11 invoice'.
|
// The amountMsat is required in case an amount is not specified in the bolt11 invoice'.
|
||||||
const amountMsat = 3000000
|
const amountMsat = 3000000
|
||||||
|
|||||||
Reference in New Issue
Block a user