react-otp-test

1.0.1 • Public • Published

react-native-my-otp

Getting started

$ npm install react-native-my-otp --save

Mostly automatic installation

$ react-native link react-native-my-otp

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-my-otp and add RNMyOtp.xcodeproj
  3. In XCode, in the project navigator, select your project. Add libRNMyOtp.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.RNMyOtpPackage; to the imports at the top of the file
  • Add new RNMyOtpPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-my-otp'
    project(':react-native-my-otp').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-my-otp/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-my-otp')
    

Windows

Read it! :D

  1. In Visual Studio add the RNMyOtp.sln in node_modules/react-native-my-otp/windows/RNMyOtp.sln folder to their solution, reference from their app.
  2. Open up your MainPage.cs app
  • Add using My.Otp.RNMyOtp; to the usings at the top of the file
  • Add new RNMyOtpPackage() to the List<IReactPackage> returned by the Packages method

Usage

import RNMyOtp from 'react-native-my-otp';
 
// TODO: What to do with the module?
RNMyOtp;

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i react-otp-test

      Weekly Downloads

      3

      Version

      1.0.1

      License

      MIT

      Unpacked Size

      96.8 kB

      Total Files

      26

      Last publish

      Collaborators

      • pankajn