RCTReloadCommand.h 645 B

1234567891011121314151617181920
  1. /**
  2. * Copyright (c) Facebook, Inc. and its affiliates.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. #import <Foundation/Foundation.h>
  8. #import <React/RCTDefines.h>
  9. @protocol RCTReloadListener
  10. - (void)didReceiveReloadCommand;
  11. @end
  12. /** Registers a weakly-held observer of the Command+R reload key command. */
  13. RCT_EXTERN void RCTRegisterReloadCommandListener(id<RCTReloadListener> listener);
  14. /** Triggers a reload for all current listeners. You shouldn't need to use this directly in most cases. */
  15. RCT_EXTERN void RCTTriggerReloadCommandListeners(void);