Files
breez-sdk-liquid/packages/react-native/example/README.md
Ross Savage 15a0c46f76 Improve development guides (#809)
* Improve development guides

* Apply suggestions from code review

Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>

* Add Firefox prerequisites

---------

Co-authored-by: Erdem Yerebasmaz <erdem@yerebasmaz.com>
2025-03-25 17:23:04 +01:00

48 lines
1.1 KiB
Markdown

# Breez Liquid SDK React Native Example
## Prerequisites
You need to set your Breez API key in the relevant places before running the example.
Either Find and Replace `INSERT_YOUR_BREEZ_API_KEY` with your Breez API key,
or replace `INSERT_YOUR_BREEZ_API_KEY` in the following files:
* `android/app/gradle.properties`
* `ios/Secrets.xconfig`
## Build
Run the npm/yarn install to download dependences:
```bash
yarn
```
or
```bash
npm i
```
## Run
### Android
```bash
yarn android
```
#### Android Troubleshooting
* Before running `yarn android`, stop any `Metro` instances that may be running.
* If you get the error
```
Failed to load dynamic library 'libbreez_sdk_liquid_bindings.so': dlopen failed: cannot locate symbol "__extenddftf2"
```
that is likely due to a dependency issue affecting x86_64 images. Try to run the app on a physical Android device or on a x86 image.
### iOS
```bash
yarn pods
yarn ios
```
## Development
To develop the Breez Liquid SDK alongside the React Native module and example app, please read [DEVELOPMENT.md](../DEVELOPMENT.md) for details on how to setup your development environment.