File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 77#import " RCTConvert.h"
88#endif
99
10- #import < React/RCTTextView.h>
11- #import < React/RCTImageView.h>
12-
1310#if __has_include(<hermes/hermes.h>) && SENTRY_PROFILING_SUPPORTED
1411#define SENTRY_PROFILING_ENABLED 1
1512#import < Sentry/SentryProfilingConditionals.h>
@@ -674,10 +671,10 @@ - (void) addReplayRNRedactClasses: (NSDictionary *_Nullable)replayOptions
674671{
675672 NSMutableArray *_Nonnull classesToRedact = [[NSMutableArray alloc ] init ];
676673 if ([replayOptions[@" maskAllImages" ] boolValue ] == YES ) {
677- [classesToRedact addObject: [ RCTImageView class ] ];
674+ [classesToRedact addObject: NSClassFromString ( @" RCTImageView" ) ];
678675 }
679676 if ([replayOptions[@" maskAllText" ] boolValue ] == YES ) {
680- [classesToRedact addObject: [ RCTTextView class ] ];
677+ [classesToRedact addObject: NSClassFromString ( @" RCTTextView" ) ];
681678 }
682679 [PrivateSentrySDKOnly addReplayRedactClasses: classesToRedact];
683680}
You can’t perform that action at this time.
0 commit comments