react-native-sia
v0.13.4
Published
The Sia SDK for React Native.
Maintainers
Readme
react-native-sia
The Sia SDK for React Native.
Installation
npm install react-native-siaUsage
import { getHostSettings } from 'react-native-sia';
// ...
const result = await getHostSettings('127.0.0.1', 9980);Build scripts
yarn ubrn:ios- Uses UBRN to:
- Build the Rust crate for iOS and iOS Simulator (via Cargo).
- Create the XCFramework from the static libraries.
- Generate UniFFI bindings (TypeScript + C++ glue) and the TurboModule.
- Run
pod installin the example app so Xcode picks up the framework and module.
- Note: because of Rust 2024 edition dependencies, this runs with nightly toolchain.
- Uses UBRN to:
yarn prepare(react-native-builder-bob)- Builds the JavaScript/TypeScript distribution for publishing:
- Transpiles
src/tolib/module(ES/CJS). - Emits type declarations to
lib/typescript.
- Transpiles
- Builds the JavaScript/TypeScript distribution for publishing:
