Kottidev / react-native-oppwa

A well Tested feature rich Oppwa implementation for React Native, supporting both iOS & Android platforms
MIT License
6 stars 12 forks source link

react-native-oppwa

A React Native library for Oppwa, the Open Payment Platform

NPM

Installation

1. Add Oppwa to your project

2. Add react-native-oppwa

Automatically

react-native install react-native-oppwa, or with yarn: rnpm install react-native-oppwa

React Native / rnpm will automatically link all the necessary libraries for both iOS and Android.

If the installation goes off without a hitch, you can now skip to the Usage section

Manually

yarn add react-native-oppwa --save

Manually iOS support

Download the Open Payment Platform SDK and place the two frameworks in the ios directory. You may want to add this directory to your .gitignore as they take up a decent amount of space and will slow down Git.

You will also need to modify the Run Script Phase that you likely added to Build Phases so that it points to the correct location for the Oppwa framework. If you placed the framework directly under ios/Oppwa as specified above,t the contents of the script will then be:

Then do the following:

Android

*Note: Android support requires React Native 0.16 or later

Make sure you also follow the steps described in Android.

Usage

Note: .

License

MIT Mohamed Anouar KOTTI © 2017