React Native SDK for Fetch 3.0.0
November 3rd, 2026 by Yvan Rajaonarivony
This major version is a rewrite on top of the CoreDataDome SDK for React Native. See the migration guide to migrate from 2.x.
Breaking changes
- Rename the package from
@datadome/react-native-datadometo@datadome/react-native-datadome-fetch - Add
@datadome/react-native-core-datadomeas a peer dependency, which must be installed alongside this package - Replace
DataDomeFetchand theDataDomesingleton (DataDome.configure,DataDome.getInstance) withcreateDataDomeFetch(dataDome), which takes aDataDomeclient created withnew DataDome({ clientKey })and returns afetch-compatible function - Remove the
datadomerequest option: the returned function now adds the DataDome headers to every request and checks every response for a challenge - Remove
DataDomeModal,DataDomeModuleandenableVerboseLogs - Remove the
react-native-webviewpeer dependency: challenges are now presented natively by the CoreDataDome SDK - Require React Native 0.85 or newer with the New Architecture, iOS 15.1 or newer and Android API 24 or newer
Changes
- Accept a
string,URLorRequestas input, and aHeadersobject, an array of pairs or a plain object as headers - Return the server response as is when the CoreDataDome SDK fails, so a DataDome error never fails the app's request
- Rewrite the package in TypeScript, and re-export
DataDome,ResponseValidationStatus,DataDomeConfigurationandDataDomeCookiefrom the CoreDataDome SDK

