getsentry / sentry-cocoa

The official Sentry SDK for iOS, tvOS, macOS, watchOS.
https://sentry.io/for/cocoa/
MIT License
813 stars 329 forks source link

Replay options not visible from Objective-C #4543

Open bruno-garcia opened 1 week ago

bruno-garcia commented 1 week ago

Platform

iOS

Environment

Production

Installed

CocoaPods

Version

Latest React Native one

Xcode Version

not sure

Did it work on previous versions?

No response

Steps to Reproduce

A customer on React Native, tried to enable replay through the native layer directly (they are initializign Sentry native directly). But they said they couldn't call options.experimental from Objective-C

Are you willing to submit a PR?

No response

brustolin commented 4 days ago

From native objc code, you need to use @import Sentry; and not #import <Sentry/Sentry.h> to be able to use session replay.

Can you check whether this works for the customer?