mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
do not call [super loadView] in RN's UIViewController (#45312)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45312 changelog: [internal] loadview shouldn't call its super method. Even though it isn't broken now, the official docs recommend against it. https://developer.apple.com/documentation/uikit/uiviewcontroller/1621454-loadview Reviewed By: christophpurrer Differential Revision: D59376105 fbshipit-source-id: ee04020c008a3f208aafc79991c6ff24a71b226f
This commit is contained in:
committed by
Facebook GitHub Bot
parent
258f41a30f
commit
83392a9cd9
+1
-1
@@ -38,7 +38,7 @@
|
||||
|
||||
- (void)loadView
|
||||
{
|
||||
[super loadView];
|
||||
self.view = [UIView new];
|
||||
[_touchHandler attachToView:self.view];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user