@dubsdotapp/expo 0.2.52 → 0.2.53
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.
- package/README.md +14 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @dubsdotapp/expo
|
|
2
2
|
|
|
3
|
-
React Native SDK for the [Dubs](https://dubs.fun) betting platform.
|
|
3
|
+
React Native SDK for the [Dubs](https://dubs.fun) betting platform.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -14,6 +14,19 @@ For the built-in Mobile Wallet Adapter (optional):
|
|
|
14
14
|
npx expo install @solana-mobile/mobile-wallet-adapter-protocol-web3js
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
### Custom Dev Builds
|
|
18
|
+
|
|
19
|
+
The SDK includes `expo-crypto` as a dependency to provide `crypto.getRandomValues` for Solana transaction signing, wallet encryption, and other cryptographic operations. This works automatically in Expo Go and EAS builds.
|
|
20
|
+
|
|
21
|
+
If your app uses a **custom dev build** (has `ios/` or `android/` directories), you need to rebuild after installing so the native `ExpoCrypto` module is linked:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
npx expo prebuild --clean
|
|
25
|
+
npx expo run:ios # or npx expo run:android
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
This is standard Expo behavior for any package with native code — you only need to do this once after installing the SDK.
|
|
29
|
+
|
|
17
30
|
## Quick Start
|
|
18
31
|
|
|
19
32
|
### 1. Set up the provider
|