Ferossgp / react-native-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-native-awesome-rs-library

Example Rust into React Native integration

Before getting started please make sure that you have your React Native and Rust env configured.

Build

./rust/build_android.sh - will generate the so binary and Kotlin interface

./rust/build_ios.sh - will generate the binary and Swift interface

or use the npm script:

yarn build-rust

Test with the example app:

yarn install - install all necessary dependencies yarn example ios - run the example app on iOS yarn example android - run the example app on Android

Usage

import { multiply } from 'react-native-awesome-rs-library';

// ...

const result = await multiply(3, 7);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

License:MIT License


Languages

Language:Java 26.7%Language:Shell 20.3%Language:Ruby 16.0%Language:JavaScript 11.2%Language:Objective-C 9.0%Language:TypeScript 4.9%Language:Kotlin 4.6%Language:Objective-C++ 4.0%Language:Rust 1.8%Language:Swift 1.2%Language:C 0.4%