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:
10
snippets/react-native/receive_payment.ts
Normal file
10
snippets/react-native/receive_payment.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { receivePayment } from "@breeztech/react-native-breez-sdk"
|
||||
|
||||
const exampleReceiveLightningPayment = async () => {
|
||||
// ANCHOR: receive-payment
|
||||
const invoice = await receivePayment({
|
||||
amountMsat: 3000000,
|
||||
description: "Invoice for 3000 sats"
|
||||
})
|
||||
// ANCHOR: receive-payment
|
||||
}
|
||||
Reference in New Issue
Block a user