@@ -304,7 +304,7 @@ public void initNativeSdk(final ReadableMap rnOptions, Promise promise) {
304304    }
305305
306306    private  SentryReplayOptions  getReplayOptions (@ NotNull  ReadableMap  rnOptions ) {
307-         @ NotNull  final  SentryReplayOptions  androidReplayOptions  = new  SentryReplayOptions ();
307+         @ NotNull  final  SentryReplayOptions  androidReplayOptions  = new  SentryReplayOptions (false );
308308
309309        @ Nullable  final  ReadableMap  rnExperimentsOptions  = rnOptions .getMap ("_experiments" );
310310        if  (rnExperimentsOptions  == null ) {
@@ -317,7 +317,7 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
317317
318318        androidReplayOptions .setSessionSampleRate (rnExperimentsOptions .hasKey ("replaysSessionSampleRate" )
319319                ? rnExperimentsOptions .getDouble ("replaysSessionSampleRate" ) : null );
320-         androidReplayOptions .setErrorSampleRate (rnExperimentsOptions .hasKey ("replaysOnErrorSampleRate" )
320+         androidReplayOptions .setOnErrorSampleRate (rnExperimentsOptions .hasKey ("replaysOnErrorSampleRate" )
321321                ? rnExperimentsOptions .getDouble ("replaysOnErrorSampleRate" ) : null );
322322
323323        if  (!rnOptions .hasKey ("mobileReplayOptions" )) {
@@ -328,12 +328,12 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
328328            return  androidReplayOptions ;
329329        }
330330
331-         androidReplayOptions .setRedactAllText (!rnMobileReplayOptions .hasKey ("maskAllText" ) || rnMobileReplayOptions .getBoolean ("maskAllText" ));
332-         androidReplayOptions .setRedactAllImages (!rnMobileReplayOptions .hasKey ("maskAllImages" ) || rnMobileReplayOptions .getBoolean ("maskAllImages" ));
331+         androidReplayOptions .setMaskAllText (!rnMobileReplayOptions .hasKey ("maskAllText" ) || rnMobileReplayOptions .getBoolean ("maskAllText" ));
332+         androidReplayOptions .setMaskAllImages (!rnMobileReplayOptions .hasKey ("maskAllImages" ) || rnMobileReplayOptions .getBoolean ("maskAllImages" ));
333333
334334        final  boolean  redactVectors  = !rnMobileReplayOptions .hasKey ("maskAllVectors" ) || rnMobileReplayOptions .getBoolean ("maskAllVectors" );
335335        if  (redactVectors ) {
336-             androidReplayOptions .addClassToRedact ("com.horcrux.svg.SvgView" ); // react-native-svg 
336+             androidReplayOptions .addMaskViewClass ("com.horcrux.svg.SvgView" ); // react-native-svg 
337337        }
338338
339339        return  androidReplayOptions ;
0 commit comments