Add React Native snippets

This commit is contained in:
Ross Savage
2023-10-24 22:38:52 +02:00
parent cd3e85d92a
commit 07b55775cf
32 changed files with 4227 additions and 199 deletions

View 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
}