Expose native show message method in header
Reviewed By: mmmulani Differential Revision: D7201691 fbshipit-source-id: b5f74351a9be7e6e9a7fc7145a09ba9854efc002
This commit is contained in:
parent
4f8328bf2f
commit
bec97dc243
|
@ -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;
|
||||||
|
|
|
@ -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 { }
|
||||||
|
|
Loading…
Reference in New Issue