Worldpay / access-checkout-react-native

Other
2 stars 2 forks source link

Access Checkout React Native SDK

Build Status:

Prerequisites

  1. Install the following tools

    • node
    • npm
    • detox-cli (global install)
    • pod (Cocoapods)
    • watchman (used as part of building Android app)
  2. Create a custom device in Simulator for iPhone 8 and iOS 14 and name it iphone8-14

React & React Native Compatibility

Our SDK is compatible with:

Getting Started

Compiling the Access Checkout React Native SDK

  1. Install the npm dependencies in the access-checkout-react-native-sdk project
cd access-checkout-react-native-sdk
npm install
  1. Install the CocoaPods dependencies in the access-checkout-react-native-sdk project's iOS bridge
cd access-checkout-react-native-sdk/ios
pod install
  1. Re-run the script used to export the SDK's types
cd access-checkout-react-native-sdk
npm run prepare

Compiling the demo application

  1. Install the npm dependencies in the demo-app folder
cd demo-app/
npm install
  1. Install the CocoaPods dependencies in the demo-app's ios folder
cd demo-app/ios
pod install
  1. Compile the application
cd demo-app/
npm run typescript

Running the Demo Application

First, start the metro server

cd demo-app/
npm run start

Running the application for iOS

cd demo-app/
npm run ios

Running the application for Android

cd demo-app/
npm run android

Developing in this repo

Android

IOS

ReactNative

Running the SDK tests

cd access-checkout-react-native-sdk
npm run test