Skip to content

Unclear documentation about autoInitializeNativeSdk #7717

Open
@bitcrumb

Description

@bitcrumb

Core or SDK?

Core Sentry product

Which part? Which one?

React Native

Description

I find the documentation on https://docs.sentry.io/platforms/react-native/manual-setup/native-init/ lacking. I am looking into setting up the native iOS/Android SDK manually, but I run into questions which are not answered decisively by the current documentation:

  • What if you don't set autoInitializeNativeSdk to false? Is it a problem if you both initialize natively and at the JS side?
  • It is unclear if calling Sentry.init() is still required when already manually starting the SDK on the native side? I assume so, since the documentation mentioned setting autoInitializeNativeSdk? But why would you still need to call this anyway if it is already initialized at the native side?
  • Does this imply that you can still pass on extra options to the JS invocation of Sentry.init even if you already passed options on the native side? Is this allowed? Will these be merged?
  • Similarly, it is unclear if calling Sentry.init({ dns: '...' }) with a dns is required or not since the dns is already provide via native initialisation?

Suggested Solution

Extend the documentation to clearly shed light on the above issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions