adyen integration to React Native

Viewed 1426

Good Day everyone.. Does anyone know how to integrate adyen to React Native which works on both IOS and ANDROID.

Thanks in advance :)

3 Answers

Using the 'react bridge module'<React/RCTBridgeModule.h> you are able to wrap native libraries into Javascript.

Using methods RCT_EXPORT_MODULE and RCT_EXPORT_METHOD you are able to wrap individual functions, with some degree of flexibility regarding naming and parameters.

React bridge module supports auto type conversion from the native code, making the wrapping of functions faster.

Documentation and example code
IOS: https://facebook.github.io/react-native/docs/native-modules-ios.html
Android: https://facebook.github.io/react-native/docs/native-modules-android.html

Related