0.7.0 • Published 7 years ago

superid-react-native v0.7.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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:

pod 'SuperIDRN', :path => './node_modules/superid-react-native/iOS'

Run pod install

Android

  1. android/settings.gradle:: Add the following snippet
include ':SuperIDRN'
project(':SuperIDRN').projectDir = file('../node_modules/superid-react-native/Android')
  1. android/app/build.gradle: Add in dependencies block.
compile project(':SuperIDRN')
  1. in your MainActivity (or equivalent) the SIDRNPackage needs to be added. Add the import at the top:
import com.yourtion.SuperIDRN.SIDRNPackage;;
  1. In order for React Native to use the package, add it the packages inside of the class extending ReactActivity.
@Override
protected List<ReactPackage> getPackages() {
  return Arrays.<ReactPackage>asList(
  new MainReactPackage(),
  ...
  new SIDRNPackage()
  );
}
0.7.0

7 years ago

0.6.0

8 years ago

0.5.0

8 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago