react-native-navigation的迁移库

RNNEventEmitter.h 1.4KB

12345678910111213141516171819202122232425262728293031323334353637
  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 componentType:(NSString *)componentType;
  7. - (void)sendComponentDidDisappear:(NSString *)componentId componentName:(NSString *)componentName componentType:(NSString *)componentType;
  8. - (void)sendOnNavigationButtonPressed:(NSString*)componentId buttonId:(NSString*)buttonId;
  9. - (void)sendBottomTabSelected:(NSNumber *)selectedTabIndex unselected:(NSNumber*)unselectedTabIndex;
  10. - (void)sendBottomTabLongPressed:(NSNumber *)selectedTabIndex;
  11. - (void)sendOnNavigationCommandCompletion:(NSString *)commandName commandId:(NSString *)commandId params:(NSDictionary*)params;
  12. - (void)sendOnSearchBarUpdated:(NSString *)componentId text:(NSString*)text isFocused:(BOOL)isFocused;
  13. - (void)sendOnSearchBarCancelPressed:(NSString *)componentId;
  14. - (void)sendOnPreviewCompleted:(NSString *)componentId previewComponentId:(NSString *)previewComponentId;
  15. - (void)sendModalsDismissedEvent:(NSString *)componentId numberOfModalsDismissed:(NSNumber *)modalsDismissed;
  16. - (void)sendModalAttemptedToDismissEvent:(NSString *)componentId;
  17. - (void)sendScreenPoppedEvent:(NSString *)componentId;
  18. - (void)sendBottomTabPressed:(NSNumber *)tabIndex;
  19. @end