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:
Samuel Susla
2024-07-08 06:08:58 -07:00
committed by Facebook GitHub Bot
parent 258f41a30f
commit 83392a9cd9
@@ -38,7 +38,7 @@
- (void)loadView
{
[super loadView];
self.view = [UIView new];
[_touchHandler attachToView:self.view];
}