Skip to content

Commit

Permalink
fix: hot fix missing imageView
Browse files Browse the repository at this point in the history
  • Loading branch information
thong.bui committed Sep 29, 2023
1 parent e3a2afe commit f25fa0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ios/ScreenGuard.mm
Expand Up @@ -52,10 +52,10 @@ - (void) initTextField {
- (void)removeScreenShot {
UIWindow *window = [UIApplication sharedApplication].keyWindow;
if (textField != nil) {
if (imageView != nil) {
[imageView setImage: nil];
[imageView removeFromSuperview];
}
// if (imageView != nil) {
// [imageView setImage: nil];
// [imageView removeFromSuperview];
// }
[textField setSecureTextEntry: FALSE];
[textField setBackgroundColor: [UIColor clearColor]];
[textField setBackground: nil];
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-native-screenguard",
"version": "0.2.6",
"version": "0.2.8",
"private": false,
"description": "A Native screenshot blocking library for React-Native developer, with background customizable after captured. Screenshot detector are also supported.",
"main": "index",
Expand Down

0 comments on commit f25fa0a

Please sign in to comment.