a react native package that enables you connect to Raven Bank’s Bank Box
First you need to obtain your app credentials from Raven Bank
npm install raven-mobile-pos
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
<key>NSBluetoothAlwaysUsageDescription</key>
<string>allow app use bluetooth</string>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>allow app use bluetooth</string>
- Debugging IOS would now require physical devices after depending on this plugin as build may fail on simulator.
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