Using the library for React Native
Closed this issue · 2 comments
yishus commented
Working with a React Native app now, and previous suggestions have been to make use of this node library to create the token.
Running into 2 issues
- React Native can't do dynamic import but line 7 of
apiResources.js
has a require that is dynamic api.js
requiresbluebird
andhttps
which the React Native library can't handle too
Wanted to check if there are possible solutions for integrating Omise into a React Native app other than writing our own native modules, or using a webview with Omise.js
Antonhansel commented
Hello @yishus
This repository is for Node, have you checked this document ? https://www.omise.co/omise-js-api
It should help you implement omg on React Native
ensecoz commented
@yishus have you finally make omisejs working with react native yet?
@Antonhansel I search issue in omise-js and https://github.com/omise/omise.js/issues/11 it suggest to use omise-node and here it is suggest to use omise-js