0.1.11-b • Published 6 years ago

react-native-android-credentials v0.1.11-b

Weekly downloads
14
License
MIT
Repository
-
Last release
6 years ago

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();
0.1.11-b

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago