Merge pull request #64 from phonezawphyo/master

Fix WKWebView memory leak
This commit is contained in:
Thibault Malbranche 2018-09-30 23:18:57 +02:00 committed by GitHub
commit 336cdc8559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,6 +95,8 @@ static NSString *const MessageHanderName = @"ReactNative";
[self addSubview:_webView];
[self visitSource];
} else {
[_webView.configuration.userContentController removeScriptMessageHandlerForName:MessageHanderName];
}
}