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_payment.ts
Normal file
12
snippets/react-native/send_payment.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { sendPayment } from "@breeztech/react-native-breez-sdk"
|
||||
|
||||
const exampleSendLightningPayment = async () => {
|
||||
// ANCHOR: send-payment
|
||||
const bolt11 = "..."
|
||||
|
||||
const sendPaymentResponse = await sendPayment({
|
||||
bolt11,
|
||||
amountMsat: 3000000
|
||||
})
|
||||
// ANCHOR_END: send-payment
|
||||
}
|
||||
Reference in New Issue
Block a user