Open Niltonsf opened 2 years ago
@Niltonsf this dependency is native to Node.js, and looks like you are using in a ReactNative app. Ideally this would only be required in case you need to make the request using a HTTPS Agent. For now as a workaround, try to install this package and see if it works for you:
npm install https
It didn't work unfortunately. The library doesn't seem to work with React Native.
I've managed to reproduce this error locally recently when trying to use the lib in a ReactNative app as well. This is indeed an issue, and so far the best path to fix it is not clear to me. Need more research.
I have implemented in the following way, but I get an error on the api call, the error is that `request('https'') was not defined. Error: