Closed oakinyelure closed 11 months ago
Hi @oakinyelure, thanks for reaching out!
From your investigation I understand that DdSdk
is null
. This would happen if the Datadog Native Module is not registered.
This would be the case if you are using Expo Go, which cannot run any custom native code. If you are using Expo Go, we recommend switching to Expo Dev Client or mocking native modules when developing with Expo Go: https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/setup/expo/#expo-go
If you are already using the Expo Dev Client, can you make sure to reinstall your pods and re-build your app and check if the problem is still present?
Thanks a lot!
Thanks. My team will look at the local build approach.
My team is starting to configure datadog monitoring for our React Native application. The app uses expo with no separate Android or IOS build. We currently use React 18, expo 48.0.0 and expo version 48.0.0 was installed as well
This is how DD is initialized per the doc
Steps to reproduce the issue:
Expectation is for it to work based on the configuration in the documentation.
**My team is constantly getting
Cannot read property 'initialize' of null
. The same using the Datadog provider. We dug deeper, it appearsis constantly throwing an exception because the DdSDK is null. This is in the
DdSdkReactNative.tsx
file**