Skip to content

Commit

Permalink
Deprecate RCTBridgeWillReloadNotification [3/n]
Browse files Browse the repository at this point in the history
Summary:
`RCTBridgeWillReloadNotification` has one job: whenever bridge reloads - trigger a reload in `RCTSurfacePresenter`.

Diff 1/2 deprecated bridge reloading APIs, and replaced them with `RCTReloadCommand`. Use that in `RCTSurfacePresenter` instead .

Changelog: [iOS][Deprecate] Deprecate RCTBridgeWillReloadNotification

Reviewed By: shergin

Differential Revision: D17880926

fbshipit-source-id: 00adc4d56d11d40ab371d81bb17a05609c184769
  • Loading branch information
Peter Argany authored and facebook-github-bot committed Oct 30, 2019
1 parent d98cd7d commit 5ca0df6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions React/Base/RCTBridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ RCT_EXTERN NSString *const RCTDidSetupModuleNotificationModuleNameKey;
RCT_EXTERN NSString *const RCTDidSetupModuleNotificationSetupTimeKey;

/**
* This notification fires just before the bridge starts processing a request to
* reload.
* DEPRECATED - Use RCTReloadCommand instead. This notification fires just before the bridge starts
* processing a request to reload.
*/
RCT_EXTERN NSString *const RCTBridgeWillReloadNotification;

Expand Down

0 comments on commit 5ca0df6

Please sign in to comment.