react-native-bdk-sdk 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +47 -12
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,24 +1,59 @@
1
- # todo
1
+ ![BDK Banner](https://github.com/Psycarlo/react-native-bdk-sdk/blob/main/assets/bdk-banner.png)
2
2
 
3
- ## Getting Started
3
+ <div align="center">
4
+ <h1>react-native-bdk-sdk</h1>
5
+ <p>Unofficial React Native bindings for BDK</p>
6
+ </div>
4
7
 
5
- ## Maintainers
8
+ <br />
6
9
 
7
- ### Requirements
10
+ A modern, lightweight, descriptor-based wallet library written in Rust! And now, on React Native using uniffi.
8
11
 
9
- - [pnpm](https://pnpm.io/installation)
10
- - [just](https://github.com/casey/just)
12
+ <br />
11
13
 
12
- ### Generate bindings
14
+ <div align="center">
15
+ <a href="https://bitcoindevkit.org/">BDK Website</a> ·
16
+ <a href="https://docs.rs/bdk_wallet/latest/bdk_wallet/">BDK Wallet</a>
17
+ </div>
13
18
 
14
- 1. Install dependencies
19
+ ## Installation
20
+
21
+ ### Expo
22
+
23
+ 1. Install the package
15
24
 
16
25
  ```bash
17
- pnpm install
26
+ npx expo install react-native-bdk-sdk
27
+ ```
28
+
29
+ 2. Make sure the plugin is in `app.json`
30
+
31
+ ```json
32
+ {
33
+ "expo": {
34
+ "plugins": ["react-native-bdk-sdk"]
35
+ }
36
+ }
18
37
  ```
19
38
 
20
- 2. Generate
39
+ Warning: If you are using pnpm v10+, run pnpm approve-builds and select `react-native-bdk-sdk` to allow the postinstall script to download the prebuilt native binaries.
40
+
41
+ 3. Run prebuild
21
42
 
22
43
  ```bash
23
- just generate
24
- ```
44
+ npx expo prebuild
45
+ ```
46
+
47
+ ### Bare React Native
48
+
49
+ 1. Install the package
50
+
51
+ ```bash
52
+ npm install react-native-bdk-sdk
53
+ ```
54
+
55
+ Note: If you are running on iOS, navigate into the `ios` folder and run `pod install`.
56
+
57
+ ## License
58
+
59
+ Released under the **MIT** license — see the [LICENSE](LICENSE) file for details.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-bdk-sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "React Native language bindings for the Bitcoin Development Kit",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -79,8 +79,8 @@
79
79
  "access": "public"
80
80
  },
81
81
  "checksums": {
82
- "android": "c1329a399d25aaea84557b1abeaa8571a268ecae9a17bbca93fb594b58208f73",
83
- "ios": "eb53ada52f8b6477ecf4c01bd86124c5ac965f188ba8633da9ec5a47480532c0"
82
+ "android": "ce49aff791b6b32205ff410d61fc75b9cbcad33ed4c19ccaa93cf8cbac19d06f",
83
+ "ios": "1984328794090754d98c71b159ac78b19c6021bd4d8b33106091a5a256b5447d"
84
84
  },
85
85
  "dependencies": {
86
86
  "uniffi-bindgen-react-native": "0.30.0-1"