react-native-proapps-2fa
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

react-native-proapps-2fa

Getting started

$ npm install react-native-proapps-2fa --save

Mostly automatic installation

$ react-native link react-native-proapps-2fa

Manual installation

iOS

  1. In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  2. Go to node_modulesreact-native-proapps-2fa and add RNProApps2fa.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNProApps2fa.a to your project's Build PhasesLink Binary With Libraries
  4. Run your project (Cmd+R)<

Android

  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNProApps2faPackage; to the imports at the top of the file
  • Add new RNProApps2faPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-proapps-2fa'
    project(':react-native-proapps-2fa').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-proapps-2fa/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-proapps-2fa')
    

Configure your project

Android

  1. Insert the following lines in android/build.gradle:
    allprojects {
        repositories {
            flatDir {
                dirs project(':react-native-proapps-2fa').file('libs') // this line
            }
        }
    }
    

Usage

import RNProApps2fa from 'react-native-proapps-2fa';

Package Sidebar

Install

npm i react-native-proapps-2fa

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • movibe