Skip to content

Commit

Permalink
Fixed surface presenter observer (#24048)
Browse files Browse the repository at this point in the history
Summary:
We missed create observer array, let's add it.
cc. shergin .

[iOS] [Fixed] - Fixed surface presenter observer
Pull Request resolved: #24048

Differential Revision: D14537159

Pulled By: shergin

fbshipit-source-id: f57f685a09aa7c9692245d178b68e94d666ae2fb
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed Mar 20, 2019
1 parent a98f342 commit 7ae9040
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions React/Fabric/RCTSurfacePresenter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ - (instancetype)initWithBridge:(RCTBridge *)bridge config:(std::shared_ptr<const
} else {
_reactNativeConfig = std::make_shared<const EmptyReactNativeConfig>();
}

_observers = [NSMutableArray array];

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(handleBridgeWillReloadNotification:)
Expand Down

0 comments on commit 7ae9040

Please sign in to comment.