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:
22
snippets/react-native/fiat_currencies.ts
Normal file
22
snippets/react-native/fiat_currencies.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import {
|
||||
listFiatCurrencies,
|
||||
fetchFiatRates
|
||||
} from "@breeztech/react-native-breez-sdk"
|
||||
|
||||
const exampleListCurrencies = async () => {
|
||||
// ANCHOR: list-fiat-currencies
|
||||
const fiatCurrencies = await listFiatCurrencies()
|
||||
// ANCHOR_END: list-fiat-currencies
|
||||
}
|
||||
|
||||
const exampleFetchRates = async () => {
|
||||
// ANCHOR: fetch-fiat-rates
|
||||
const fiatRates = await fetchFiatRates()
|
||||
// ANCHOR_END: fetch-fiat-rates
|
||||
}
|
||||
|
||||
const exampleListCurrenciesAndRates = async () => {
|
||||
// ANCHOR: get-fiat-currencies-and-rates
|
||||
// TODO
|
||||
// ANCHOR_END: get-fiat-currencies-and-rates
|
||||
}
|
||||
Reference in New Issue
Block a user