Reputation: 103
Good Day everyone.. Does anyone know how to integrate adyen to React Native which works on both IOS and ANDROID.
Thanks in advance :)
Upvotes: 7
Views: 1855
Reputation: 11
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
Upvotes: 1
Reputation: 3343
There is a RN wrapper for Adyen library here. https://github.com/YouriT/react-native-adyen-drop-in
You should check the Adyen version, the library is not using the latest version.
Upvotes: 0
Reputation: 141
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
Upvotes: 3