zo0r / react-native-conekta

React Native Conekta SDK for iOS and Android
https://www.conekta.io
MIT License
34 stars 22 forks source link

using this library with expo #4

Open ghost opened 7 years ago

ghost commented 7 years ago

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

ferroblesh commented 7 years ago

@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

AlexHenkel commented 6 years ago

@cesargdm Expo doesn't allow linking native code yet

AlexHenkel commented 6 years ago

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

valentin7 commented 6 years ago

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