Fixed surface presenter observer (#24048)

Summary:
We missed create observer array, let's add it.
cc. shergin .

[iOS] [Fixed] - Fixed surface presenter observer
Pull Request resolved: https://github.com/facebook/react-native/pull/24048

Differential Revision: D14537159

Pulled By: shergin

fbshipit-source-id: f57f685a09aa7c9692245d178b68e94d666ae2fb
This commit is contained in:
zhongwuzw
2019-03-19 22:11:32 -07:00
committed by Facebook Github Bot
parent a98f342191
commit 7ae90408c9

View File

@@ -74,6 +74,8 @@ using namespace facebook::react;
} else {
_reactNativeConfig = std::make_shared<const EmptyReactNativeConfig>();
}
_observers = [NSMutableArray array];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleBridgeWillReloadNotification:)