- Install the following tools
- node
- npm
- detox-cli (global install)
- pod (Cocoapods)
- watchman (used as part of building Android app)
- Create a custom device in Simulator for
iPhone 8
andiOS 14
and name itiphone8-14
Our SDK is compatible with:
React Native 0.70.0
and aboveReact 18.1.0
and above
- Install the npm dependencies in the
access-checkout-react-native-sdk
project
cd access-checkout-react-native-sdk
npm install
- Install the CocoaPods dependencies in the
access-checkout-react-native-sdk
project's iOS bridge
cd access-checkout-react-native-sdk/ios
pod install
- Re-run the script used to export the SDK's types
cd access-checkout-react-native-sdk
npm run prepare
- Install the npm dependencies in the demo-app folder
cd demo-app/
npm install
- Install the CocoaPods dependencies in the demo-app's ios folder
cd demo-app/ios
pod install
- Compile the application
cd demo-app/
npm run typescript
First, start the metro server
cd demo-app/
npm run start
cd demo-app/
npm run ios
cd demo-app/
npm run android
- Open up
demo-app/android/build.gradle
in android studio - this will show you the android module as well as the demo-app module
- To work on the react native module, open
ios/AccessCheckoutReactNative.xcworkspace
in XCode. - To run the demo application, open
demo-app/ios/AccessCheckoutReactNativeDemo.xcworkspace
in XCode.- Use this application to debug the code, you can find the module code in
Pods/Development Pods/AccessCheckoutSDK-React
- Use this application to debug the code, you can find the module code in
- To work on the ReactNative part of the demo application, open the root directory in Intellij and you can work in
demo-app/src
cd access-checkout-react-native-sdk
npm run test