Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vladikoff/react-native-rust-jose-c
react-native-rust-jose-c
https://github.com/vladikoff/react-native-rust-jose-c
Last synced: 14 days ago
JSON representation
react-native-rust-jose-c
- Host: GitHub
- URL: https://github.com/vladikoff/react-native-rust-jose-c
- Owner: vladikoff
- Created: 2018-04-03T01:08:58.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-03T01:20:14.000Z (almost 7 years ago)
- Last Synced: 2024-10-19T00:27:09.070Z (3 months ago)
- Language: C#
- Size: 532 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-native-rust-jose-c
## Getting started
`$ npm install react-native-rust-jose-c --save`
### Mostly automatic installation
`$ react-native link react-native-rust-jose-c`
### Manual installation
#### Android
1. Open up `android/app/src/main/java/[...]/MainActivity.java`
- Add `import com.reactlibrary.RNRustJoseCPackage;` to the imports at the top of the file
- Add `new RNRustJoseCPackage()` to the list returned by the `getPackages()` method
2. Append the following lines to `android/settings.gradle`:
```
include ':react-native-rust-jose-c'
project(':react-native-rust-jose-c').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-rust-jose-c/android')
```
3. Insert the following lines inside the dependencies block in `android/app/build.gradle`:
```
compile project(':react-native-rust-jose-c')
```## Usage
```javascript
import RNRustJoseC from 'react-native-rust-jose-c';// TODO: What to do with the module?
RNRustJoseC;
```