JSPM

trunghv-react-native-input-otp-custom

0.0.6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22420F
  • License MIT

Package Exports

  • trunghv-react-native-input-otp-custom

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (trunghv-react-native-input-otp-custom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-input-otp-custom

Getting started

$ npm install react-native-input-otp-custom --save

Mostly automatic installation

$ react-native link react-native-input-otp-custom

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

Usage

import InputOtpCustom from 'react-native-input-otp-custom';

// TODO: What to do with the module?
InputOtpCustom;