18 lines
470 B
C
18 lines
470 B
C
|
#ifndef REAKeyboardEventManager_h
|
||
|
#define REAKeyboardEventManager_h
|
||
|
|
||
|
#import <RNReanimated/REAEventDispatcher.h>
|
||
|
#import <React/RCTEventDispatcher.h>
|
||
|
|
||
|
typedef void (^KeyboardEventListenerBlock)(int keyboardState, int height);
|
||
|
|
||
|
@interface REAKeyboardEventObserver : NSObject
|
||
|
|
||
|
- (instancetype)init;
|
||
|
- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener;
|
||
|
- (void)unsubscribeFromKeyboardEvents:(int)listenerId;
|
||
|
|
||
|
@end
|
||
|
|
||
|
#endif /* REAKeyboardEventManager_h */
|