mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 13:54:20 +01:00
Add React Native snippets
This commit is contained in:
12
snippets/react-native/send_spontaneous_payment.ts
Normal file
12
snippets/react-native/send_spontaneous_payment.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { sendSpontaneousPayment } from "@breeztech/react-native-breez-sdk"
|
||||
|
||||
const exampleSendSpontaneousPayment = async () => {
|
||||
// ANCHOR: send-spontaneous-payment
|
||||
const nodeId = "..."
|
||||
|
||||
const sendPaymentResponse = await sendSpontaneousPayment({
|
||||
nodeId,
|
||||
amountMsat: 3000000
|
||||
})
|
||||
// ANCHOR_END: send-spontaneous-payment
|
||||
}
|
||||
Reference in New Issue
Block a user