raven-mobile-pos
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

raven-mobile-pos

a react native package that enables you connect to Raven Bank’s Bank Box

Prerequisites

Credentials


First you need to obtain your app credentials from Raven Bank

Installation

npm install raven-mobile-pos

Android Setup


Set minSdkVersion target

This library targets android devices >= SDK 21. Make sure you're targeting at-least the same by modifying your android/app/build.gradle file

minSdkVersion = 21

iOS Setup


Update Info.plist to add necessary permissions

  <key>NSBluetoothAlwaysUsageDescription</key>
  <string>allow app use bluetooth</string> 
  <key>NSBluetoothPeripheralUsageDescription</key>
  <string>allow app use bluetooth</string> 

Note

  • Debugging IOS would now require physical devices after depending on this plugin as build may fail on simulator.

Usage

import BankBoxManagerAPP from '../../src/App';
import 'react-native';
import { PluginEnvironment } from '../../src/context/plugin-provider';

// ...

<BankBoxManagerAPP
      fonts={DefaultFonts}
      partnerDetails={{
        appName: 'EXAMPLE',
        appEmail: 'example@gmail.com',
        appId: 'YOUR_PROJECT_APP_ID',
      }}
      partnerCustomerDetails={{
        firstName: 'firstname',
        lastName: 'lastname',
        email: 'youremail@gmail.com',
        phoneNumber: '07011111111',
        bvn: '1111111111',
      }}
      pluginEnvironment={PluginEnvironment.Production}
      colors={{ PRIMARY: '#014345' }}
    />

Made with create-react-native-library

Package Sidebar

Install

npm i raven-mobile-pos

Weekly Downloads

3

Version

0.0.2

License

MIT

Unpacked Size

7.13 MB

Total Files

865

Last publish

Collaborators

  • monalee