Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adyen integration to React Native

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

Thanks in advance :)

like image 834
deejay Avatar asked Sep 22 '17 03:09

deejay


2 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

like image 73
Igor Hoogerwoord Avatar answered Sep 19 '22 17:09

Igor Hoogerwoord


Adyen has recently released a BETA version of the official react-native support. It is still in progress, but a good point to start.

https://github.com/Adyen/adyen-react-native

like image 40
ahmetgsu Avatar answered Sep 23 '22 17:09

ahmetgsu