react-native-navigation的迁移库

RNNEventEmitter.h 1.1KB

1234567891011121314151617181920212223242526272829303132
  1. #import <Foundation/Foundation.h>
  2. #import <React/RCTEventEmitter.h>
  3. #import <React/RCTBridgeModule.h>
  4. @interface RNNEventEmitter : RCTEventEmitter <RCTBridgeModule>
  5. - (void)sendOnAppLaunched;
  6. - (void)sendComponentDidAppear:(NSString*)componentId componentName:(NSString*)componentName;
  7. - (void)sendComponentDidDisappear:(NSString*)componentId componentName:(NSString*)componentName;
  8. - (void)sendOnNavigationButtonPressed:(NSString*)componentId buttonId:(NSString*)buttonId;
  9. - (void)sendBottomTabSelected:(NSNumber *)selectedTabIndex unselected:(NSNumber*)unselectedTabIndex;
  10. - (void)sendOnNavigationCommandCompletion:(NSString *)commandName commandId:(NSString *)commandId params:(NSDictionary*)params;
  11. - (void)sendOnSearchBarUpdated:(NSString *)componentId text:(NSString*)text isFocused:(BOOL)isFocused;
  12. - (void)sendOnSearchBarCancelPressed:(NSString *)componentId;
  13. - (void)sendOnPreviewCompleted:(NSString *)componentId previewComponentId:(NSString *)previewComponentId;
  14. - (void)sendModalsDismissedEvent:(NSString *)componentId numberOfModalsDismissed:(NSNumber *)modalsDismissed;
  15. - (void)sendScreenPoppedEvent:(NSString *)componentId;
  16. @end