2015-03-23 15:07:33 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
2015-03-14 10:52:40 -07:00
|
|
|
|
|
|
|
#import "RCTView.h"
|
|
|
|
|
2015-07-31 11:23:29 -07:00
|
|
|
/**
|
|
|
|
* Special scheme used to pass messages to the injectedJavaScript
|
|
|
|
* code without triggering a page load. Usage:
|
|
|
|
*
|
|
|
|
* window.location.href = RCTJSNavigationScheme + '://hello'
|
|
|
|
*/
|
2015-07-01 18:06:39 -07:00
|
|
|
extern NSString *const RCTJSNavigationScheme;
|
|
|
|
|
2015-03-14 10:52:40 -07:00
|
|
|
@interface RCTWebView : RCTView
|
|
|
|
|
|
|
|
@property (nonatomic, strong) NSURL *URL;
|
|
|
|
@property (nonatomic, assign) UIEdgeInsets contentInset;
|
|
|
|
@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets;
|
2015-07-07 17:07:52 -07:00
|
|
|
@property (nonatomic, copy) NSString *injectedJavaScript;
|
2015-03-14 10:52:40 -07:00
|
|
|
|
|
|
|
- (void)goForward;
|
|
|
|
- (void)goBack;
|
|
|
|
- (void)reload;
|
|
|
|
|
|
|
|
@end
|