raven-mobile-pos
v0.0.2
Published
Raven Bank Mobile POS (BankBox) React Native Package
Downloads
7
Readme
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: '[email protected]',
appId: 'YOUR_PROJECT_APP_ID',
}}
partnerCustomerDetails={{
firstName: 'firstname',
lastName: 'lastname',
email: '[email protected]',
phoneNumber: '07011111111',
bvn: '1111111111',
}}
pluginEnvironment={PluginEnvironment.Production}
colors={{ PRIMARY: '#014345' }}
/>
Made with create-react-native-library