status-react/modules/react-native-status/ios/RCTStatus/TimerJSExport.h

19 lines
411 B
Objective-C

#import <Foundation/Foundation.h>
#import <JavaScriptCore/JavaScriptCore.h>
@protocol TimerJSExport <JSExport>
- (NSString *)setTimeout:(JSValue *)args;
- (void)clearInterval:(NSString *)id;
- (NSString *)setInterval:(JSValue *)args;
@end
@interface TimerJS : NSObject <TimerJSExport>
- (void)addToContext:(JSContext *)context;
- (void)stopTimers;
@property (nonatomic) NSMutableDictionary * timers;
@end