mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-17 22:04:21 +01:00
Add React Native snippets
This commit is contained in:
12
snippets/react-native/buy_btc.ts
Normal file
12
snippets/react-native/buy_btc.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import {
|
||||
buyBitcoin,
|
||||
BuyBitcoinProvider
|
||||
} from "@breeztech/react-native-breez-sdk"
|
||||
|
||||
const exampleBuyBtc = async () => {
|
||||
// ANCHOR: buy-btc
|
||||
const buyBitcoinResponse = await buyBitcoin({
|
||||
provider: BuyBitcoinProvider.MOONPAY
|
||||
})
|
||||
// ANCHOR_END: buy-btc
|
||||
}
|
||||
Reference in New Issue
Block a user