Use RCTDevLoadingView in a sample app

Reviewed By: javache

Differential Revision: D4985384

fbshipit-source-id: 1d5a33a6746010d3cf4ac524468af21bb9599f3e
This commit is contained in:
Alex Dvornikov 2017-05-02 09:52:47 -07:00 committed by Facebook Github Bot
parent 1adb318589
commit 366c15d2b2
2 changed files with 5 additions and 1 deletions

View File

@ -14,6 +14,8 @@
@interface RCTDevLoadingView : NSObject <RCTBridgeModule>
+ (void)setEnabled:(BOOL)enabled;
- (void)showWithURL:(NSURL *)URL;
- (void)updateProgress:(RCTLoadingProgress *)progress;
- (void)hide;
@end

View File

@ -161,7 +161,9 @@ RCT_EXPORT_METHOD(hide)
+ (NSString *)moduleName { return nil; }
+ (void)setEnabled:(BOOL)enabled { }
- (void)updateProgress:(RCTLoadingProgress *)progress {}
- (void)showWithURL:(NSURL *)URL { }
- (void)updateProgress:(RCTLoadingProgress *)progress { }
- (void)hide { }
@end