2015-07-10 13:18:11 -04:00
|
|
|
//
|
|
|
|
|
// RCTWebView+WebViewBridge.h
|
|
|
|
|
// Sample2
|
|
|
|
|
//
|
|
|
|
|
// Created by Ali Najafizadeh on 2015-07-10.
|
|
|
|
|
// Copyright (c) 2015 Facebook. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "RCTWebView.h"
|
2015-07-14 12:22:25 -04:00
|
|
|
#import "RCTBridgeModule.h"
|
2015-07-10 13:18:11 -04:00
|
|
|
|
|
|
|
|
@interface RCTWebView (WebViewExBridge)
|
2015-07-13 13:55:56 -04:00
|
|
|
|
2015-07-14 13:53:03 -04:00
|
|
|
- (void)injectBridgeScript:(NSNumber*)reactTag;
|
|
|
|
|
|
|
|
|
|
- (void)eval:(NSString *) value;
|
|
|
|
|
- (void)bridgeSetup;
|
|
|
|
|
- (void)send:(NSString*)message;
|
|
|
|
|
- (void)callbackCleanup:(NSNumber *)reactTag;
|
2015-07-14 12:22:25 -04:00
|
|
|
- (void)onMessageCallback:(RCTResponseSenderBlock)callback withReactTag:(NSNumber *)reactTag;
|
|
|
|
|
|
2015-07-13 13:55:56 -04:00
|
|
|
//in this category I'm going to make this mothod visible.
|
|
|
|
|
- (NSMutableDictionary *)baseEvent;
|
2015-07-14 09:19:23 -04:00
|
|
|
|
2015-07-10 13:18:11 -04:00
|
|
|
@end
|