From bec97dc24312ed59377888672fa821b2276a8a9f Mon Sep 17 00:00:00 2001 From: Eric Czarny Date: Wed, 14 Mar 2018 11:04:56 -0700 Subject: [PATCH] Expose native show message method in header Reviewed By: mmmulani Differential Revision: D7201691 fbshipit-source-id: b5f74351a9be7e6e9a7fc7145a09ba9854efc002 --- React/DevSupport/RCTDevLoadingView.h | 3 +++ React/DevSupport/RCTDevLoadingView.m | 1 + 2 files changed, 4 insertions(+) diff --git a/React/DevSupport/RCTDevLoadingView.h b/React/DevSupport/RCTDevLoadingView.h index dae01f045..61a7121c5 100644 --- a/React/DevSupport/RCTDevLoadingView.h +++ b/React/DevSupport/RCTDevLoadingView.h @@ -5,6 +5,8 @@ * LICENSE file in the root directory of this source tree. */ +#import + #import @class RCTLoadingProgress; @@ -12,6 +14,7 @@ @interface RCTDevLoadingView : NSObject + (void)setEnabled:(BOOL)enabled; +- (void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor; - (void)showWithURL:(NSURL *)URL; - (void)updateProgress:(RCTLoadingProgress *)progress; - (void)hide; diff --git a/React/DevSupport/RCTDevLoadingView.m b/React/DevSupport/RCTDevLoadingView.m index e7614a896..9382c91ca 100644 --- a/React/DevSupport/RCTDevLoadingView.m +++ b/React/DevSupport/RCTDevLoadingView.m @@ -161,6 +161,7 @@ RCT_EXPORT_METHOD(hide) + (NSString *)moduleName { return nil; } + (void)setEnabled:(BOOL)enabled { } +- (void)showMessage:(NSString *)message color:(UIColor *)color backgroundColor:(UIColor *)backgroundColor { } - (void)showWithURL:(NSURL *)URL { } - (void)updateProgress:(RCTLoadingProgress *)progress { } - (void)hide { }