diff --git a/ios/CaptureProtection.mm b/ios/CaptureProtection.mm index 34d7485..fbec94e 100644 --- a/ios/CaptureProtection.mm +++ b/ios/CaptureProtection.mm @@ -99,7 +99,8 @@ - (void)setScreenRecordScreenWithImage: (UIImage *)image { UIImageView *imageView = [[UIImageView alloc] initWithImage:image]; imageView.frame = window.frame; - imageView.contentMode = UIViewContentModeScaleAspectFill; + [imageView setClipsToBounds:YES]; + imageView.contentMode = UIViewContentModeScaleAspectFit; [protecterViewController.view addSubview:imageView]; [protecterViewController.view setBackgroundColor:[UIColor whiteColor]]; } diff --git a/package.json b/package.json index 58076ae..a819a2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-capture-protection", - "version": "1.9.4", + "version": "1.9.5", "description": "It’s a library for React Native to control simple capture events(i.e. Screenshot or Screen record)", "main": "lib/commonjs/index", "module": "lib/module/index",