Merge pull request #50 from breez/savage-rn-install

Update RN install commands
This commit is contained in:
Ross Savage
2023-09-05 09:13:42 +02:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -95,7 +95,7 @@ try {
```typescript ```typescript
try { try {
const fiatRatesMap = fetchFiatRates() const fiatRatesMap = await fetchFiatRates()
} catch (error) { } catch (error) {
console.log(error) console.log(error)
} }

View File

@@ -145,7 +145,7 @@ const nodeConfig : NodeConfig = {
inviteCode: "your invite code" inviteCode: "your invite code"
} }
} }
let config = defaultConfig(EnvironmentType.PRODUCTION, "api key", nodeConfig); let config = await defaultConfig(EnvironmentType.PRODUCTION, "api key", nodeConfig);
// Customize the config object according to your needs // Customize the config object according to your needs
config.workingDir = "path to an existing directory"; config.workingDir = "path to an existing directory";

View File

@@ -63,11 +63,11 @@ See [the example](https://github.com/breez/breez-sdk/tree/main/libs/sdk-bindings
We recommmend using the official npm package: We recommmend using the official npm package:
```console ```console
npm install https://github.com/breez/breez-sdk-react-native/releases/download/0.1.4/breeztech-react-native-breez-sdk-0.1.4.tgz npm install @breeztech/react-native-breez-sdk
``` ```
or or
```console ```console
yarn add https://github.com/breez/breez-sdk-react-native/releases/download/0.1.4/breeztech-react-native-breez-sdk-0.1.4.tgz yarn add @breeztech/react-native-breez-sdk
``` ```
## Go ## Go

View File

@@ -261,7 +261,7 @@ const destinationAddress = "bc1..";
const amountSat = currentFees.min; const amountSat = currentFees.min;
const satPerVbyte = <fee rate> const satPerVbyte = <fee rate>
try { try {
const reverseSwapInfo = sendOnchain(amountSat, destinationAddress, currentFees.feesHash, satPerVbyte) const reverseSwapInfo = await sendOnchain(amountSat, destinationAddress, currentFees.feesHash, satPerVbyte)
} catch (error) { } catch (error) {
console.log(error) console.log(error)
} }