Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ferossgp/react-native-rs
https://github.com/ferossgp/react-native-rs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ferossgp/react-native-rs
- Owner: Ferossgp
- License: mit
- Created: 2023-09-25T19:14:52.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-29T10:27:29.000Z (over 1 year ago)
- Last Synced: 2024-04-14T02:01:28.991Z (9 months ago)
- Language: Java
- Size: 1.43 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# 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
```js
import { multiply } from 'react-native-awesome-rs-library';// ...
const result = await multiply(3, 7);
```## Contributing
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
## License
MIT
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)