react-native-conekta icon indicating copy to clipboard operation
react-native-conekta copied to clipboard

using this library with expo

Open ghost opened this issue 7 years ago • 4 comments

i would like to use this library with expo ( expo.io ) its that possible?

ghost avatar Sep 14 '17 15:09 ghost

@madaviela this will not work with expo because you have to link native code(iOS/Android) to your project and Expo doesn't allow 3rd party native code. I would like know why the conekta team doesn't create this React Native Module using only javascript. I can see on there webpage that they have all the javascript required to handled the Tokenization step(native code on this module) using only vanilla javascript

ferroblesh avatar Nov 11 '17 12:11 ferroblesh

@cesargdm Expo doesn't allow linking native code yet

AlexHenkel avatar Sep 03 '18 06:09 AlexHenkel

https://gist.github.com/AlexHenkel/01e9bc5b0480c273f01815aef9a46776 This is my implementation working with Expo. This relies on Constants.deviceId provided by Expo and a publicKey gotten from .env file. Feel free to try it out and modify as you need it

AlexHenkel avatar Sep 07 '18 00:09 AlexHenkel

gracias @AlexHenkel , que buena solución en puro js 👏. Works for me 👍.

valentin7 avatar Sep 10 '18 05:09 valentin7