React Native SDK for Axios 4.0.0
November 17th, 2026 by Alexandre Brispot
- Build the SDK on top of the CoreDataDome SDK (
@datadome/react-native-core-datadome), which handles native code, cookie storage and challenge display - Add
DataDomeInterceptor.attach(instance)andeject(instance), which protect every request of an Axios instance (the defaultaxiosexport or a custom one) - Add the
DataDomeconstructor, configured with aclientKeyand an optionaldomain - Display challenges natively, with no component to add to the views
- Drop the
react-native-webviewpeer dependency: the app can uninstall it if it doesn't use it elsewhere - Retry the request automatically after a solved challenge, from the request's adapter: the app's interceptors and transforms run once per request, whatever the number of attempts
- Stop retrying a request cancelled during a challenge (
signalorcancelToken) - Protect requests whatever their Axios adapter (default, instance or per-request), including the fetch adapter with a custom
env.fetch - Send the request and return the response unchanged when the CoreDataDome SDK fails
- Export
DataDome,ResponseValidationStatus, and theDataDomeConfigurationandDataDomeCookietypes from the CoreDataDome SDK
Breaking changes
- Rename the package from
@datadome/datadome-axiosto@datadome/react-native-datadome-axios - Add
@datadome/react-native-core-datadome(1.0.0+) as a peer dependency, to install in the application - Require React Native 0.85+ with the New Architecture (previously 0.72+), iOS 15.1+ (previously 12+), Android
minSdkVersion24+ (previously 21+), and Axios 1.12+ (previously 1.11+) - Replace
DataDome.getInstance().setSdkKey(),DataDome.configure()andDataDome.configureWithOrigin()withnew DataDome({ clientKey }) - Replace
new DataDomeInterceptor({ axiosInstance })and the manual interceptor setup withrequestAdapter,responseEventHandlerandresponseAdapterbynew DataDomeInterceptor(dataDome).attach(instance) - Replace
getStoredDataDomeCookie()withdataDome.getCookie(url), and removestoreCookie() - Remove
DataDomeModal - Remove
enableVerboseLogs

