react-native-android-credentials

0.1.11-b • Public • Published

react-native-android-credentials

Getting started

$ npm install react-native-android-credentials --save

Mostly automatic installation

$ react-native link react-native-android-credentials

Manual installation

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import io.krisztiaan.rn.android.credentials.RNAndroidCredentialsPackage; to the imports at the top of the file
  • Add new RNAndroidCredentialsPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:

    include ':react-native-android-credentials'
    project(':react-native-android-credentials').projectDir =
      new File(rootProject.projectDir, '../node_modules/react-native-android-credentials/android')
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:

      compile project(':react-native-android-credentials')

Usage

import AndroidCredentials, { IdentityProviders, CredentialPickerPrompt }
  from 'react-native-android-credentials';
 
AndroidCredentials.init();

Package Sidebar

Install

npm i react-native-android-credentials

Weekly Downloads

1

Version

0.1.11-b

License

MIT

Last publish

Collaborators

  • krisztiaan