Skip to content

Out of date documentation for initializing React Native SDK #29204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
levibuzolic opened this issue May 7, 2025 · 0 comments
Open

Out of date documentation for initializing React Native SDK #29204

levibuzolic opened this issue May 7, 2025 · 0 comments

Comments

@levibuzolic
Copy link

levibuzolic commented May 7, 2025

The documentation instructs calling DdSdkNativeInitialization.initFromNative(this.applicationContext) for Android. However initFromNative requires a ReactApplicationContext as the second argument, which is not available.

DdSdkNativeInitialization.initFromNative(this.applicationContext)

As seen in the latest source code for dd-sdk-reactnative

https://github.com/DataDog/dd-sdk-reactnative/blob/0031bfe3e42ff43d22c7e26668ad58a994241463/packages/core/android/src/main/kotlin/com/datadog/reactnative/DdSdkNativeInitialization.kt#L384

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant