Skip to content

Instantly share code, notes, and snippets.

@TheNoim
Created December 20, 2017 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheNoim/5dd4efb45f82cad8c802a4c99fc47c51 to your computer and use it in GitHub Desktop.
Save TheNoim/5dd4efb45f82cad8c802a4c99fc47c51 to your computer and use it in GitHub Desktop.
// RNCookieManagerIOS.h
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
//#import <RCTBridgeModule.h>
@import WatchConnectivity;
@interface WatchBridge : NSObject <RCTBridgeModule, WCSessionDelegate>
@property (nonatomic, strong) WCSession* session;
@property (nonatomic, strong) NSMutableDictionary* replyHandlers;
@property (nonatomic, strong) NSMutableDictionary* transfers;
@property (nonatomic, strong) NSDictionary<NSString*, id>* userInfo;
+ (WatchBridge*) shared;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment