https://github.com/yourtion/reactnative-superid
SuperID ( Face OpenID ) SDK in ReactNative
https://github.com/yourtion/reactnative-superid
Last synced: about 2 months ago
JSON representation
SuperID ( Face OpenID ) SDK in ReactNative
- Host: GitHub
- URL: https://github.com/yourtion/reactnative-superid
- Owner: yourtion
- License: mit
- Created: 2016-06-29T02:18:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-28T07:27:17.000Z (over 9 years ago)
- Last Synced: 2025-02-23T02:44:51.192Z (over 1 year ago)
- Language: Objective-C
- Homepage:
- Size: 12 MB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ReactNative-SuperID
SuperID SDK in ReactNative
## Installation
```
npm i --save superid-react-native
```
### Configure your React Native Application
#### Mostly automatic install with react-native
```
react-native link superid-react-native
```
#### iOS
Cocapods:
```ruby
pod 'SuperIDRN', :path => './node_modules/superid-react-native/iOS'
```
Run `pod install`
#### Android
1. `android/settings.gradle`:: Add the following snippet
```gradle
include ':SuperIDRN'
project(':SuperIDRN').projectDir = file('../node_modules/superid-react-native/Android')
```
2. `android/app/build.gradle`: Add in dependencies block.
```gradle
compile project(':SuperIDRN')
```
3. in your `MainActivity` (or equivalent) the SIDRNPackage needs to be added. Add the import at the top:
```java
import com.yourtion.SuperIDRN.SIDRNPackage;;
```
4. In order for React Native to use the package, add it the packages inside of the class extending ReactActivity.
```java
@Override
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
...
new SIDRNPackage()
);
}
```