Can I use the Node SDK with React Native?

Last updated: June 23, 2025

Context

The Node SDK's README mentions that React Native is not officially supported. Customers using React Native applications need to understand the limitations and potential workarounds when implementing the SDK in their mobile applications.

Answer

While the Node SDK is not officially supported in React Native due to React Native's non-spec compliant fetch implementation, there are ways to work around these limitations using polyfills.

The main issues with React Native's fetch implementation include:

  • URL handling for "localhost" domain base URLs

  • Inconsistent trailing slash behavior

  • Issues with URL instance creation

To use the SDK in React Native, you have two options:

Option 1: Use a URL Polyfill

You can implement a polyfill to handle the URL implementation issues. Some recommended polyfills include:

Option 2: Create a Custom Shim

You can create your own shim for React Native, similar to how the SDK handles other environments with specific needs. This approach would involve adding custom code to handle the URL and fetch implementation differences.

Note: While these workarounds can make the SDK functional in React Native, they are not officially supported solutions. The vendor team is tracking requests for official React Native support but currently does not have it on their immediate roadmap.