mirror of
https://github.com/status-im/react-native.git
synced 2025-01-20 22:39:20 +00:00
3f6943c9ab
- [AdsManager] Correct back button functionality | Eric Vicenti - [ReactNative] Replace Backstack with BackAndroid | Eric Vicenti - [ReactNative] Better error message for EADDRINUSE | Alex Kotliarskyi - [ReactNative] npm install --save chalk | Alex Kotliarskyi - Removed redundant views and shadow views | Nick Lockwood - [ReactNative] Fix variable shadowing in RCTText | Tadeu Zagallo - [react-packager] check in image-size module | Amjad Masad - Refactored RCTLog and added facility to prepend extra data to the log message | Nick Lockwood - [ReactNative] Fix crash on image download | Tadeu Zagallo - [React Native] #WIP Modify RCTShadowText measure function to honor maxNumberOfLines property | Alex Akers - Add promise support to AsyncStorage | Spencer Ahrens - [ReactNative] Revert high-level Subscribable | Eric Vicenti - [ReactNative] wrong deprecated prop check in RCTConvert | Kevin Gozali - [ReactNative][MAdMan] Add type for image source, flowify AdsManagerObjectiveTypes | Philipp von Weitershausen
84 lines
2.6 KiB
Objective-C
84 lines
2.6 KiB
Objective-C
/**
|
|
* 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.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
#import "RCTBridge.h"
|
|
|
|
extern NSString *const RCTJavaScriptDidLoadNotification;
|
|
extern NSString *const RCTReloadNotification;
|
|
extern NSString *const RCTReloadViewsNotification;
|
|
|
|
@interface RCTRootView : UIView <RCTInvalidating>
|
|
|
|
/**
|
|
* - Designated initializer -
|
|
*/
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge
|
|
moduleName:(NSString *)moduleName NS_DESIGNATED_INITIALIZER;
|
|
|
|
/**
|
|
* - Convenience initializer -
|
|
* A bridge will be created internally.
|
|
* This initializer is intended to be used when the app has a single RCTRootView,
|
|
* otherwise create an `RCTBridge` and pass it in via `initWithBridge:moduleName:`
|
|
* to all the instances.
|
|
*/
|
|
- (instancetype)initWithBundleURL:(NSURL *)bundleURL
|
|
moduleName:(NSString *)moduleName
|
|
launchOptions:(NSDictionary *)launchOptions;
|
|
|
|
/**
|
|
* The name of the JavaScript module to execute within the
|
|
* specified scriptURL (required). Setting this will not have
|
|
* any immediate effect, but it must be done prior to loading
|
|
* the script.
|
|
*/
|
|
@property (nonatomic, copy, readonly) NSString *moduleName;
|
|
|
|
/**
|
|
* The bridge used by the root view. Bridges can be shared between multiple
|
|
* root views, so you can use this property to initialize another RCTRootView.
|
|
*/
|
|
@property (nonatomic, strong, readonly) RCTBridge *bridge;
|
|
|
|
/**
|
|
* The default properties to apply to the view when the script bundle
|
|
* is first loaded. Defaults to nil/empty.
|
|
*/
|
|
@property (nonatomic, copy) NSDictionary *initialProperties;
|
|
|
|
/**
|
|
* The class of the RCTJavaScriptExecutor to use with this view.
|
|
* If not specified, it will default to using RCTContextExecutor.
|
|
* Changes will take effect next time the bundle is reloaded.
|
|
*/
|
|
@property (nonatomic, strong) Class executorClass;
|
|
|
|
/**
|
|
* If YES will watch for shake gestures and show development menu
|
|
* with options like "Reload", "Enable Debugging", etc.
|
|
*/
|
|
@property (nonatomic, assign) BOOL enableDevMenu;
|
|
|
|
/**
|
|
* Reload this root view, or all root views, respectively.
|
|
*/
|
|
- (void)reload;
|
|
+ (void)reloadAll;
|
|
|
|
@property (nonatomic, weak) UIViewController *backingViewController;
|
|
|
|
@property (nonatomic, strong, readonly) UIView *contentView;
|
|
|
|
- (void)startOrResetInteractionTiming;
|
|
- (NSDictionary *)endAndResetInteractionTiming;
|
|
|
|
@end
|