Duplicate of#3608
Description
Description
Hello,
Is there a way to enable Native Initialization (so that Sentry will send events for native crashes on app load) using Expo on iOS?
https://docs.sentry.io/platforms/react-native/manual-setup/native-init/
I see that it's possible to do that by modifying the AppDelegate file to initialize the SDK as soon as possible but I'm not able to do that using expo.
https://docs.sentry.io/platforms/apple/guides/ios/#configure
Thank you in advance
Metadata
Metadata
Assignees
Type
Projects
Status
Waiting for: Product Owner
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]Native Initialization in Expo Managed Workflow[/-][+]Native Initialization in a react native project using epxo[/+][-]Native Initialization in a react native project using epxo[/-][+]Native Initialization in a react native project using expo[/+]krystofwoldrich commentedon May 27, 2025
Hello @jakubjanuchta,
thank you for the message, you are correct, when using Continues Native Generation, you can't directly modify the native code to add the manual native
Sentry.init()
.However you can use Expo Plugin and Mods to add the native code init, but note that this is an advance technique and we currently provide no docs for this.
We are aware of the need to initialize the SDK as early as possible and are working on a new manual initialization for RN on native. Enabling the native init before JS will be possible using Sentry Expo Plugin -> #4633
For latest updates please follow #3608
jakubjanuchta commentedon May 27, 2025
Thank you for your response @krystofwoldrich 👍