Expose native show message method in header

Reviewed By: mmmulani

Differential Revision: D7201691

fbshipit-source-id: b5f74351a9be7e6e9a7fc7145a09ba9854efc002
This commit is contained in:
Eric Czarny 2018-03-14 11:04:56 -07:00 committed by Facebook Github Bot
parent 4f8328bf2f
commit bec97dc243
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,8 @@
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.
*/ */
#import <UIKit/UIKit.h>
#import <React/RCTBridgeModule.h> #import <React/RCTBridgeModule.h>
@class RCTLoadingProgress; @class RCTLoadingProgress;
@ -12,6 +14,7 @@
@interface RCTDevLoadingView : NSObject <RCTBridgeModule> @interface RCTDevLoadingView : NSObject <RCTBridgeModule>
+ (void)setEnabled:(BOOL)enabled; + (void)setEnabled:(BOOL)enabled;
- (void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor;
- (void)showWithURL:(NSURL *)URL; - (void)showWithURL:(NSURL *)URL;
- (void)updateProgress:(RCTLoadingProgress *)progress; - (void)updateProgress:(RCTLoadingProgress *)progress;
- (void)hide; - (void)hide;

View File

@ -161,6 +161,7 @@ RCT_EXPORT_METHOD(hide)
+ (NSString *)moduleName { return nil; } + (NSString *)moduleName { return nil; }
+ (void)setEnabled:(BOOL)enabled { } + (void)setEnabled:(BOOL)enabled { }
- (void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor { }
- (void)showWithURL:(NSURL *)URL { } - (void)showWithURL:(NSURL *)URL { }
- (void)updateProgress:(RCTLoadingProgress *)progress { } - (void)updateProgress:(RCTLoadingProgress *)progress { }
- (void)hide { } - (void)hide { }