0.0.2 • Published 5 months ago
raven-mobile-pos v0.0.2
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