New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@apsisone/react-native-apsis-one

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apsisone/react-native-apsis-one

React-native wrapper for ApsisOne SDK (Android/iOS)

latest
Source
npmnpm
Version
0.0.42
Version published
Maintainers
2
Created
Source

react-native-apsis-one

Getting started

$ npm install @apsisone/react-native-apsis-one --save

Mostly automatic installation

iOS

$ npx pod-install ios

Android

$ react-native link @apsisone/react-native-apsis-one

Manual installation

iOS

  • In XCode, in the project navigator, right click LibrariesAdd Files to [your project's name]
  • Go to node_modules@apsisone/react-native-apsis-one/ios and add ApsisOneRn.xcodeproj
  • In XCode, in the project navigator, select your project. Add libApsisOneRn.a to your project's Build PhasesLink Binary With Libraries
  • Run your project (Cmd+R)

Android

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

Usage

import ApsisOneRn from '@apsisone/react-native-apsis-one';

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

You can view examples of plugin usage in example folder

To use example project:

iOS

$ cd examples
$ npm install @apsisone/react-native-apsis-one
$ npx pod-install ios
$ xed -b ios

Keywords

react-native

FAQs

Package last updated on 24 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts